- Joined
- Jan 7, 2019
- Messages
- 16
- Reaction score
- 23
Hello
I'm trying to get a new Autotask integration set up (https://webservices4.autotask.net/atservicesrest/swagger/ui/index#/) and I'm running into a few problems based on what Autotask expects for its API calls.
It seems you have to use square brackets to make searches using the Autotask API, meaning a search function would look like:
https://webservices4.autotask.net/atservicesrest/v1.0/Contacts/query?search={"filter":[{"op":"contains","field":"phone","value":"[Number]"}]}
The problem is 3CX template generate tries to parse the brackets and using an escape character like '\' doesn't seem to resolve this. As a test then I ran a simple query to find entities:
https://webservices4.autotask.net/atservicesrest/v1.0/Contacts/entityinformation/fields which works fine.
I'm trying to get a new Autotask integration set up (https://webservices4.autotask.net/atservicesrest/swagger/ui/index#/) and I'm running into a few problems based on what Autotask expects for its API calls.
It seems you have to use square brackets to make searches using the Autotask API, meaning a search function would look like:
https://webservices4.autotask.net/atservicesrest/v1.0/Contacts/query?search={"filter":[{"op":"contains","field":"phone","value":"[Number]"}]}
The problem is 3CX template generate tries to parse the brackets and using an escape character like '\' doesn't seem to resolve this. As a test then I ran a simple query to find entities:
https://webservices4.autotask.net/atservicesrest/v1.0/Contacts/entityinformation/fields which works fine.
