Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Inserting New Records

(0) ShareShare
ReportReport
Posted on by

I am trying to migrate agreements (contracts) from a sql server database into crm (msp_contract) using Power Automate.  The issue I'm having is that if the agreement already exist, I want to update the agreement and if it doesn't, I want to insert the record(s).  The update works great, however, the insert will insert all columns except the agreement id (msp_name).  The msp_name field appears to be autogenerated via an api and I can't figure out how to get around this.  I have even disabled CRM2015_Plugin.AutoNumber [via Plug-in Assemblies] but that did nothing.  Any ideas?

  • LuHao Profile Picture
    40,888 on at
    RE: Inserting New Records

    Hi SirCharles,

    You can insert agreements before updating agreement id (msp_name).

    So in the power automate, first insert agreements from a sql server database, then add a step "Update a row" to update the agreement id (msp_name) of the created agreements.

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Adis Profile Picture

Adis 136 Super User 2025 Season 1

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 81

#3
Jonas "Jones" Melgaard Profile Picture

Jonas "Jones" Melgaard 77 Super User 2025 Season 1

Product updates

Dynamics 365 release plans