Hello
I got a SharePoint list (List A) where I run a "For a selected Item" event that collects text and a file (attachment) that I want to use to populate a different list (List B).
I can use the text to populate List B through "Create Item", but I haven't been able to use "Add attachment". I've looked for the answer, but I haven't understood how to reference the file content and the file name from "For a Selected Item" to use the information in "Add attachment".
The "For a selected Item" gives the outputs as shown below: text: "Testing flow", and file: ContentBytes and Name for the file, but I can't use them to "Add attachment". I will very much appreciate your help.
Thank you
Leo
Hi @leonel_guzman please refer the image and the steps below
Please try it out and let me know if you have any clarifications.
@sudharsan1985 I'm pretty sure that @leonel_guzman means the Attachment that you can attach to the trigger, not the one attached to the item in the SharePoint list.
I'm also looking for a solution for this.
I'm a bit confused, the contentbytes from the trigger are the ones you want to create the attachment, correct?
Why can't you use them?
Contentbytes is not the issue, the Filename is.
I have played arround a bit and it seems you have to add your own filename object:
so just use
Thank you.
I'll try
Hi,
have you been able to manage the content of the file attached to the flow run?
I've been able to extract the name of it using a parse JSON action, but no matter which dynamic content I put in the Content in the create file action, I cannot get a meaningful file. And I'm working with a simple txt file.
Hi bosco93,
Nope, I haven't been able to. At some point the requirements changed, and I didn't need it anymore, so I didn't follow up.
Good luck!
User | Count |
---|---|
88 | |
43 | |
21 | |
18 | |
16 |
User | Count |
---|---|
132 | |
47 | |
42 | |
36 | |
28 |