Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

You should specify a parent contact or account Dynamics CRM

Posted on by Microsoft Employee

I am trying to create a new incident through postman in Dynamics CRM but I am getting the following error :

You should specify a parent contact or account

Which I assumed that is asking for customerid to be sent so I added it on post man like:

{
    "description": "Test",
    "ed_egresssenttorentadmin": true, 
    "note['_customerid_value@odata.bind']":"f686f062-e542-e811-a955-000d3ab27a43",
    "note['_ownerid_value@odata.bind']":"a7b7fcb7-a64e-e811-a96f-000d3ab384bc"
}

but I still get the same error, any idea on how to set account id when creating a new incident ?

3823.Untitled.png

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: You should specify a parent contact or account Dynamics CRM

    Like I answered in SO, please test with basic payload first, then include your custom attributes the same way.

    [View:https://stackoverflow.com/a/51727311/7920473]

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: You should specify a parent contact or account Dynamics CRM

    Hi LeoDynamics,

    This article explains how to create an entity using the Web API.

    For creating incidents with the Web API, you will need to create with association, and specify a parent contact or account.

    Here is an example of a Web API request. Where GUID is the GUID of a contact or account, and only one of the customerid lines should be used.

    POST http://[Organization URI]/api/data/v9.0/incidents HTTP/1.1
    Content-Type: application/json
    OData-MaxVersion: 4.0
    OData-Version: 4.0
    {  
      "description": "Test",
      "customerid@odata.bind": "http://[Organization URI]/api/data/v9.0/contacts(GUID)",
    "customerid@odata.bind": "http://[Organization URI]/api/data/v9.0/accounts(GUID)" }

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans