Skip to main content

Notifications

Announcements

No record found.

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

Compare fields of two entities in bulk

Posted on by 355

Hello, 

I need to bulk compare two fields of two different entities (1:N relationship) to retrieve the records where the values are different.
On the selected records, I will bulk update the values of field 1 (of the target entity) to make them equal to field 2 (of the related entity).

As I cannot compare two fields within a view from Dynamics CRM, is it possible to create it by using a fetchXML instead and how?

If it's not possible, are there other ways or tools from XrmToolbox to achieve the goal?

I'm aware that I can extract the records to an excel file, compare the fields, fix the wrong values, and import them massively to CRM but I want to avoid this.

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Compare fields of two entities in bulk

    Hello,

    As for me, the easiest way is to use SQL and SSIS with KingsWay Soft adapters. Here is the approximate path:

    1. Extract the data to on-prem or cloud SQL using SSIS with KingsWaySoft adapters.

    2. Find your diffs to find the records that have to be updated using SQL queries.

    3. Use SSIS to update the data.

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans