Hi, I use approvals on a sharepoint list, each entry has only one attachment (a PDF).
I'll perform some operations in my flow once inserted and then rename the attachment applying also a watermak.
To achieve this I'll first get the attachment and then I'll edit several times the SP entry, finally if all went ok I delete the original attachment and the insert a new one with the watermark and with different name.
My doubt is: if I edited several times the SP entry what record ID will you choose to delete the old attachment and insert the new one?
I mean: the original "@triggerOutputs()?['body/ID']" or some of the various updated entries "@outputs('Update_element')?['body/ID']" ?
I ask this beacause only in some situations i found a mess with the attachments saved in SP entry they don't belong to!
Please Help!
Thank you
Solved! Go to Solution.
Hello @bordy12 ,
you should use the ID of the SharePoint item. You'll use it first in the 'Get attachments' action that will provide the attachment(s) id so you can delete them, and then you'll use the same SharePoint item ID to 'Add attachment' to the item.
Hello @bordy12 ,
you should use the ID of the SharePoint item. You'll use it first in the 'Get attachments' action that will provide the attachment(s) id so you can delete them, and then you'll use the same SharePoint item ID to 'Add attachment' to the item.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
76 | |
27 | |
18 | |
16 | |
15 |
User | Count |
---|---|
138 | |
45 | |
35 | |
32 | |
29 |