Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Unanswered

Cannot Set Case Type*, Sub Case Type , Case Title

(0) ShareShare
ReportReport
Posted on by 5

I'm Using incident API in postman and doing a POST request

This is my body

{
"customerid_account@odata.bind" : "accounts(e676e359-6f59-e711-810d-5065f38bb051)",
"title" : "rxaap.com-Data Issues- PharmacyInformationUpdate",
"new_newcasetitle" : "rxaap.com- Data Issues - PharmacyInfoUpdate",
"caseorigincode" : 3,
"casetypecode" : 100000003,
"new_casetype" : "rxaap.com",
"new_casetypelookup" : "rxaap.com",
"new_casesubtypelookup" : "Data Issues",
"description" : "This is test. Please, ignore "
}

pastedimage1592207335906v1.png
  • RE: Cannot Set Case Type*, Sub Case Type , Case Title

    Adding documentation as per Carlo comment:

    Associate entity records on create

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/create-entity-web-api#associate-entity-records-on-create

    Sample:

    POST [Organization URI]/api/data/v9.0/accounts HTTP/1.1
    Content-Type: application/json; charset=utf-8
    OData-MaxVersion: 4.0
    OData-Version: 4.0
    Accept: application/json

    {
    "name":"Sample Account",
    "primarycontactid@odata.bind":"/contacts(00000000-0000-0000-0000-000000000001)"
    }

    Regards.

  • Carlo Velasco Profile Picture
    Carlo Velasco 787 on at
    RE: Cannot Set Case Type*, Sub Case Type , Case Title

    Hi it seems that the issue is on your lookup fields.

    To set a value on a lookup field you must pass the target record guid, not the name of the record.

    This is an example.

    "new_PrimaryIncident@odata.bind":"/incidents(10000000-0000-0000-0000-000000000000)"

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans