OData for Contact Entity on ADX Portal

284 views Asked by At

I have enabled odata for contact entity. Below is the json response for it.

{
 "odata.metadata":"https://<myportal>.microsoftcrmportals.com/_odata/$metadata#Contacts","value":[
    {
      "contactid":"bc18d85e-55d3-e711-8134-c4346bdcfde1","fullname":"Support new","emailaddress1":"[email protected]","parentcustomerid":null,"telephone1":null,"list-id":"64985f31-0fdf-e711-812d-c4346bdd8041","view-id":"00000000-0000-0000-00aa-000010001004","entity-permissions-enabled":null
    }
  ]
}

In this json response, I am getting values of some fields like fullname, emailaddress1 etc. etc.

I also want values of other fields like owner, ownerid etc.

Also, How can I anable odata for User, Team, Business Unit entities.

I am calling this json from adx portal.

1

There are 1 answers

0
Ashutosh B Bodake On

If you want value in JSON that data must be present on your view for which you want odata.

Also, Odata is obsolete so you can use liquid templates. It is an easy and good way to get the JSON response of your entities and custom entities.