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 :
Customer experience | Sales, Customer Insights,...
Answered

customerid in webapi

(0) ShareShare
ReportReport
Posted on by

I am creating case record through api

record1:

{
"title" : "case1",
"customerid_contact@odata.bind" : "/contacts(guid)"   

}

record2:

{
"title" : "case2",
"customerid_account@odata.bind" : "/accounts(guid)"   

}

above two records were successfully created through postman.

My question is, while doing programmatically, how we can ensure that we are mapping the customerid with contact or account ?

I have the same question (0)
  • Verified answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at

    Hi,

    Can please share about how you received the GUID?

    For e.g. if you are getting the values from any third party webapi then I would suggest you to check the same GUID with account and contact once any of them found then you can set those values during create.

  • Verified answer
    Inogic Profile Picture
    709 on at

    For identifying and mapping the entity's logical name while setting the customer ID field, you have to first retrieve that record from CRM. So, in your situation, you have to make two retrieve requests to identify the logical name of the entity. For example, you have a GUID, so in the first request, you have to check the GUID present in the Account entity, and in the second request, you have to check the GUID present in the Contact entity. Based on both request results, you can identify which logical name of the entity you should provide while creating a case entity record. 

    Hope this helps.

    Thanks!

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans