web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
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
I have the same question (0)
  • Carlo Velasco Profile Picture
    787 on at

    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)"

  • Alejandro Serdan Profile Picture
    on at

    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.

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

News and Announcements

Season of Giving Solutions is Here!

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
Pallavi Phade Profile Picture

Pallavi Phade 101

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 69 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans