cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

CDS Connector can't store attachment in OneDrive, while D365CE can

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.

2019-07-03 18_51_43-Window.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @D365Geek1 ,

 

Please try following expression to configure file content:

base64ToBinary(triggerBody()?['documentbody'])

Image reference:

39.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Community Support
Community Support

Hi @D365Geek1 ,

 

Please try following expression to configure file content:

base64ToBinary(triggerBody()?['documentbody'])

Image reference:

39.PNG

Hope it helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

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!

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (80,131)