Hi, I have a few field with knowledge files which I wanted to consolidate all into one single file attachment column. Is there any way for me to use workflow / JavaScript / API to get the link for all the knowledge files, then attach them together in the same file attachment column (multiple files)? Currently the best I can do is download the knowledge files, then convert it to base64 and the using API to attach it to the file attachment column. But doing this, the file uploaded is no longer the same knowledge file, but it is a copy. I know this is doable using normal manual key in method. But I want to do it using the workflow to automate the task.
发表话题
- 积分
162 - 注册排名
1731
It is possible to merge files using the workflow, get the attachment link (refer to https://bbs.mingdao.net/topic/398) through the【 code block】, and then fetch/request request to get the file content, convert to base64 for merging (please note the consistency of attachment types), and use the worksheet API(https://help.nocoly.com/api/write-data-to-worksheet/) attachment base64 upload mode to update the attachment; (Note: Only files within 7M are supported https://help.nocoly.com/faq/numbers/#4-api)