Hi
I've been working on upgrading some of my Flows to use CDS connectors/triggers instead of the D365CE connectors/Triggers and found an issue with attachments. I want to take an attachment in D365CE and save it to OneDrive for Business. The Flow runs sucessfully but the file is corrupted and cannot be used.
I use the exact same Dynamic content in both flows, one CDS and one D365CE and only the CDS fails.
Is there an extra step required to convert the attachment (documentbody) to a file in OneDrive for the CDS or is this a bug? Using this action in the D365CE triggers works fine.
Thanks
Matt
Solved! Go to Solution.
Hi @D365Geek1 ,
Please try following expression to configure file content:
base64ToBinary(triggerBody()?['documentbody'])
Image reference:
Hope it helps.
Best Regards,
Hi @D365Geek1 ,
Please try following expression to configure file content:
base64ToBinary(triggerBody()?['documentbody'])
Image reference:
Hope it helps.
Best Regards,
Thanks for the reply, that does solve the problem so thank you. I thought it was unusual behaviour as the D365CE trigger doesn't require this, but i guess that's just the way it works. Thanks again @v-bacao-msft!
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.