cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Flow fails when updating record in D365

Hi,

We have created a flow that should update a record (SalesQuotationHeader) i D365FO.

Unfortunately it fails randomly. It can run successfully  and then suddenly fail. I have tried to resubmit the same flow again and again and it differs randomly between succes and fail. We really can't discover what happens.

Maybe it is not the right way to do it..

FlowFail.JPG

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous 

 

The Flow is probably failing because the Object ID expects a GUID of the record and you are passing the variables in there. So if you want to update the record that you got in the last step, you need to use the ID of the record retrieved to update the record. You can type the name of the entity or 'id' in the dynamic selector to get the record ID for the Update Record action and use that as a reference. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
v-alzhan-msft
Community Support
Community Support

Hi @Anonymous ,

 

Could you please explain more details about your scenes?

Could you please share a screenshot of the configuration of your flow?

 

Best regards,

Alice       

 

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

Anonymous
Not applicable

The flow is triggered by an action in a PowerApp.

First of all we initialize 3 variables.

Then we get a record from D365FO

Last we update the same record in to D365FO.

But i'm very much in doubt if it the "GetPost"-step is necessary?

Next i'm very much in doubt if it is really necessary to update all the fields in the entity - isn't it possible only to update a single field in the record. I don't want to mess with all the other fields.

Hope my question is understandable.GetRecord.JPGUpdateRecord.JPG

Hi @Anonymous 

 

The Flow is probably failing because the Object ID expects a GUID of the record and you are passing the variables in there. So if you want to update the record that you got in the last step, you need to use the ID of the record retrieved to update the record. You can type the name of the entity or 'id' in the dynamic selector to get the record ID for the Update Record action and use that as a reference. 

 

Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Kudoed Authors
Users online (2,485)