cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
D365Geek1
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
v-bacao-msft
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
v-bacao-msft
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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (41,021)