RESTful API - Search for person & company entities by phone number

Solved

I am trying to build an integration into Sage CRM which is require me to be able to search for both person and company records using a phone number. I can't see a clear way of doing this from the API reference. Can anyone advise how I would do this?

Parents Reply
  • +1 in reply to joshSWR
    verified answer

    Hi  
    I can replicate this.
    The POST to the communication table also creates the comm_link record, but with no "CmLi_Comm_PersonId" or "CmLi_Comm_CompanyId" so no need to do another POST.

    Just grab the comm_link record id by

     

    https://baseurl/sdata/crmj/sagecrm2/-/comm_link?where=cmli_comm_communicationid eq ‘xxxx’

    And then PATCH

    https://baseurl/sdata/crmj/sagecrm2/-/comm_link('xxxx')

    with

    {
    "CmLi_Comm_UserId": 29,
    "CmLi_Comm_PersonId": 116491,
    "CmLi_Comm_CompanyId": 85112
    }

Children