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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Active Discussion

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
  • 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
    Microsoft Employee 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

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 208 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 80

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans