When using the Sage CRM API to retrieve phone records, it returns the association URLs for getting associated company/person records. These do not work, though, and return no results when called.
Does anyone know why this is or if there is a way to fix it? Is it a bug in this Sage CRM version (2023 R2.1)?
Example Response for Phone endpoint:
{
"$key": 757938,
"$title": "",
"$url": "http://srv-apps/sdata/crmj/sagecrm2/-/Phone('757938')",
"Phon_CountryCode": "44",
"phon_IntId": null,
"Phon_number": "123456",
"phon_promote": false,
"Phon_AreaCode": "0811",
"phon_segmentid": null,
"phon_IntForeignID": null,
"phon_intlastsyncdate": null,
"Person": {
"$url": {
"Association": "http://srv-apps/sdata/crmj/sagecrm2/-/Phone('757938')/Person?startindex=1&count=10"
}
},
"Company": {
"$url": {
"Association": "http://srv-apps/sdata/crmj/sagecrm2/-/Phone('757938')/Company?startindex=1&count=10"
}
},
"Account": {
"$url": {
"Association": "http://srv-apps/sdata/crmj/sagecrm2/-/Phone('757938')/Account?startindex=1&count=10"
}
}
}
Response from the association URLs in the above example:
{
"$url": "http://srv-apps/sdata/crmj/sagecrm2/-/Phone('757938')/Company?startindex=1&count=10",
"$first": "http://srv-apps/sdata/crmj/sagecrm2/-/Phone('757938')/Company?startindex=1&count=10",
"$last": "http://srv-apps/sdata/crmj/sagecrm2/-/Phone('757938')/Company?startindex=1&count=10",
"$totalResults": 0,
"$startIndex": 1,
"$itemsPerPage": 10,
"$resources": []
}
