Using postman for making a request to retrieve company details (but also tried this with a .Net HttpClient)
The response from the Rest API does not match the response schema as described in the Documentation.
More exactly, the related entities (Person, Email, Phone, Address) are not returned as Arrays but just $urls references
Example
GET http://localhost/sdata/CRMj/sagecrm2/-/Company('2')
Response
...
"Address": {
"$url": [
{
"Reference": "http://il1csoicrm02/sdata/crmj/sagecrm2/-/Address('2')"
},
{
"Association": "http://il1csoicrm02/sdata/crmj/sagecrm2/-/Company('2')/Address?startindex=1&count=10"
}
]
},
"Email": {
"$url": {
"Association": "">il1csoicrm02/.../Email
}
}
The documentation says Address should be returned as Array
Should there be specific headers added to the request in order to return the data as described or is there an issue in the API?
Thanks,
Costi