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, ...
Answered

How to get Duns number from CustCustomerV3Entity

(0) ShareShare
ReportReport
Posted on by 1,967

Hi,

I want to have DunsNumber in CustCustomerV3Entity butI t seems I can't add DirDunsNumber table as a datasource for DirPartyBaseEntity which is used inside CustCustomerV3Entity 

I have the same question (0)
  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi IntegrationBeginner,

    You can create an extension of DirPartyBaseEntity and add the field DunsNumberRecId from derived data source DirOrganizationBase. You can then add the table DirDunsNumber as a data source in an extension of CustCustomerV3 entity and link it to DirPartyBaseEntity based on DunsNumberRecId field. You should now be able to add the field DunsNumber in CustCustomerV3 entity extension.

  • .. Profile Picture
    1,967 on at

    Hey Gunjan,

    I added the dunsNumber field in CustCustomerV3Entity...and inside my custom Json service, I do insert inside this entity and I added this condition (if the input of dunsNumber != Null then fill it in custCustomerV3Entity when inserting)

    Now in postMan if I leave dunsNumber as Null or if delete the whole node, an empty string records gets inserted in DirDunsNumber and now whenEver someone tries to create a customer and not fill this DunsNumber we'll get an error that it already exists. What to do in this case?

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi IntegrationBeginner,

    What join mode have you used for DirDunsNumber table?

  • .. Profile Picture
    1,967 on at

    Hi Gunjan,

    Outer join..not sure why it inserts to it everytime

  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    You will need to create CoC on insertEntityDataSource and updateEntityDataSource methods in the entity. You can check how LogisticsPostalAddressBaseEntity datasource update is being restricted in the existing entity method.

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 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans