Skip to main content

Notifications

Power Automate - Using Connectors
Answered

Flow fails when updating record in D365

(0) ShareShare
ReportReport
Posted on by

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

 

  • Verified answer
    yashag2255 Profile Picture
    yashag2255 24,442 on at
    Re: Flow fails when updating record in D365

    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!

  • Re: Flow fails when updating record in D365

    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

  • Re: Flow fails when updating record in D365

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard

Featured topics