web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Update of an entity based on a condition

(0) ShareShare
ReportReport
Posted on by 270

Hello,
Is there a way in CRM to do an Update like with we do in sql sesrver : 

UPDATE account
SET attribute1 = value1 
                    WHEN attribute2 > value2 

Thank you in advance.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    prt33k Profile Picture
    6,907 on at

    No, you can do update in bulk like in SQL.

    The update of record need to go through Update message.

    msdn.microsoft.com/.../microsoft.xrm.sdk.iorganizationservice.update.aspx

    Thanks,

    Prateek

  • Don foufione Profile Picture
    270 on at

    How can I do it like a bulk in sql?

  • Suggested answer
    prt33k Profile Picture
    6,907 on at

    CRM doesnt work is SQL way :)

    So the update happens based on GUID unlike SQL where you can apply it based on any condition.

    The UPDATE message will accept the GUID of the record to be updated along with attributes.

    However, you can club all these UPDATE request into a single request using ExecuteMultiple. This however doesnt change the way update happens in CRM - it just reduces the number of calls from client to server.

    msdn.microsoft.com/.../microsoft.xrm.sdk.messages.executemultiplerequest.aspx

    Thanks,

    Prateek

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    You can either do it using SSIS and KingswaySoft CRM Connector, or you can create an external application, retrieve the records in an EntityCollection that match that Query Expression, and do an Update on all records.

    You can update multiple records at once by using the ExecuteMultipleRequest message.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans