Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Web API post is correct but the data in the form is not

Posted on by Microsoft Employee

Hi.

I've got the following query which is creating a new incident:

{
	"im360_caseorigin" : "123123123",
    "title" : "TEST2 created",
    "description" : "TEST2 created",
    "im360_systemcreated" : true,
    "im360_systmemmanaged" : false,
    "statuscode" : "21323111",
    "customerid_account@odata.bind" : "/accounts(c836e945-a425-e911-a966-000d3a30eb04)",
    "customerid_contact@odata.bind" : "/contacts(a1908c01-2444-e911-a96b-000d3a1e6063)"
}


but when checking the web interface, the Account is set to Contact and Contact is empty. If I individually query account and contact with the previous values I get an answer with the right values.

api.png

*This post is locked for comments

  • Suggested answer
    Kalpavruksh D365 CoE Profile Picture
    Kalpavruksh D365 CoE 2,545 on at
    RE: Web API post is correct but the data in the form is not

    Hi,

    You have set a contact and account to customerid field in the same request.

    Customerid field can be set to either contact or account but not both at the same time.

    Please find the contact lookup field(LogicalName) and set the value with web API request.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans