Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Stop Duplicate records based on new field

(0) ShareShare
ReportReport
Posted on by 800

Hi All,

I have small query about controlling duplicate records based new field created on salesTable

We have added new field in SalesTable called "XReference" and Field data  getting inserted when sales order is getting created from 3rd party application(By service). 

We want to maintain uniqueness based on xreference and salesid. So we have added a condition to avoid duplication at service level but in some scenarios two sales orders having sames Xreference. (There are some calls are happening exactly at same time not even having difference in seconds )

we can't create new unique index(combination of SalesId and Xreference) as we have many duplicate records with this combination(Settle credit not for those ordes).

how we can control duplication records(Based on combination of Sales ID and Xrefence).

We can handle at 3rd party application level but due some reasons we are unable to do.it

Regards

KVNKK

  • WillWU Profile Picture
    22,352 on at
    RE: Stop Duplicate records based on new field

    Hi Kvnkk,

    What do you mean by "duplication records", you could use RecId to avoid duplication records.

    Although their XReference is the same, will it affect the data insertion?

    And you could always use salesTable::exist(XReference xReference) to check if you have the same record.

    You could make some changes to the xReference if the exist() method return true.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,762 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans