web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • WillWU Profile Picture
    22,361 on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans