Retrieve related records using the record sync key

Hi,

I am trying to call to GET the revenue line items linked to an opportunity using the opportunity sync key but I am getting an error.

The endpoint I am calling looks like -> (GET) http://localhost/sugar/rest/v11_18/integrate/Opportunities/sync_key/10480/link/revenuelineitems

and the error I am getting is:

"error_message": "Could not find a route with 6 elements"
I can't find that endpoint definition in the documentation so I think it is likely not possible to do it but I want to check. The only GET endpoint that I found is the one that gives you the entity by the entity sync_key.
Thanks,
Natalia
Parents
  • Hi  ,

    I often use, in Postman:

    GET {{url}}Module/ID, like:
    GET {{url}}Opportunities/cbfr6b30-e49a-11fd-8ef4-06f9654tc8a3

    To see ALL a records fields, and to make sure I am using the right one.  That might help?

    In my opportunity above I have a field:

    "sync_key""",
    No idea if that is what you need?  I dont think we ever use sync key.
    Hope it helps work out the existing api call in the documentation...  I think that might be like the Archives in StarWars: 'if does not exist in the archives, it does not exist' Grimacing

Reply
  • Hi  ,

    I often use, in Postman:

    GET {{url}}Module/ID, like:
    GET {{url}}Opportunities/cbfr6b30-e49a-11fd-8ef4-06f9654tc8a3

    To see ALL a records fields, and to make sure I am using the right one.  That might help?

    In my opportunity above I have a field:

    "sync_key""",
    No idea if that is what you need?  I dont think we ever use sync key.
    Hope it helps work out the existing api call in the documentation...  I think that might be like the Archives in StarWars: 'if does not exist in the archives, it does not exist' Grimacing

Children
No Data