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

Insert or retrieve contract person with it's electronic address

(0) ShareShare
ReportReport
Posted on by 1,552

So a customer can have several contact persons, each with different electronic addresses.

What i want is when i pass contact details,  FirstName,MiddleName,LastName with email, and phone

I want to detect if the details inserted already exist for that customer contact and retrieve it if not the inesrt a new record.

How can i do that?

i'm using smmContactPersonV2Entity for the insert.

I was able to do sth similar for DirPartyLocationPostalAddressEntity, where the insert of this method handled this alone, and i was able to retrieve the address if the address passed already exist and if not, it then created a new one.

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,171 Super User 2025 Season 2 on at

    Hi Junior AX,

    Can you clarify what you want to insert here? If you want to add a record for a phone or email, where do you get the values from these contact details?

  • junior AX Profile Picture
    1,552 on at

    Hi Andre,

    As you know for each customer there are number of contact person.

    I'm calling sth by code where i pass the delivery address by code and the contact person by code as well.

    So what happens is, if i pass an already existing delivery address it should choose the existing one instead of adding one. If the address passed can't be found then it should create a new one for the customer (contact person)

    Same thing goes for contacts, if the contact passed is the same as an already existing one then it should take that exisitng one and pass it, if not then it should create a new one for the customer.

    it's like the same functionality when a form where you have the option to choose an existing one or click on the plus to create a new one.

    But instead i'm passing sth by code and it should detect if it's existing or not.

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans