Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Creating Flow to update Account Records

Posted on by 45

Hi,

I'm currently in the process of Importing data into dynamics. When uploading Accounts and Contacts, we noticed that the Primary Contact field in Accounts doesn't get filled. So to avoid having to upload accounts and then export all the accounts, make changes and then re import accounts we decided to use a flow to facilitate this.

I've created the flow using the CDS to make the updates, and the flow is successful. However, the changes aren't actually applied to Accounts, still leaving the Primary Contact Field empty.

Can someone please help me with this issue?

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Creating Flow to update Account Records

    Yes I understand your pain, it's a known issue. CDS connector need a little expression to set a lookup. Please refer to this blog to resolve your issue: 

    https://daytodaydynamics365.com/referencing-records-when-using-the-common-data-service-current-environment-connector/

  • Sam Hef Profile Picture
    Sam Hef 45 on at
    RE: Creating Flow to update Account Records

    Updated the flow with a condition, so that if the Primary Contact Field (which I created) contains "Yes", then a Get Record method runs to verify the record is there, then Update Record method runs and updates the Primary Contact in Accounts with the Contact that was created. I'm getting the response/error:

    {
      "statusCode"404,
      "message""Resource not found"
    }
    2671.Screenshot_5F00_2020_2D00_05_2D00_07-Run-History-Power-Automate_2800_1_2900_.png
  • Sam Hef Profile Picture
    Sam Hef 45 on at
    RE: Creating Flow to update Account Records

    Sure, here is what I have:

    It's not much since I don't know what needs to be done to achieve desire results.

    6082.InkedScreenshot_5F00_2020_2D00_05_2D00_07-Edit-your-flow-Power-Automate_5F00_LI.jpg0045.Screenshot_5F00_2020_2D00_05_2D00_07-Edit-your-flow-Power-Automate_2800_1_2900_.png

  • meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Creating Flow to update Account Records

    Hi

    Can you please share your update action using some screenshots ?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans