As part of a custom installation, I want to update the all existing tickets, so I am starting by attempting to list all existing tickets, using the invokeTemplate method. However, I get an invalid credential error if I include the query string ?updated_since=2015-02-19T02:00:00Z as per example. If I omit this query, I do not get any error, and I can make the call using the standard API and other calls with the
same authorization string.
If I remember correctly the API key can only be used at runtime from the secure params. It cannot be passed in the context. Exception for that is on the installation page I believe
Sorry, my previous comment was wrong. You can actually use API key from the context it seems. Your problem might be connected to the query. You need to pass that as a separate parameter in the schema. Here is an example how I used it with agents:
The ISO datetime strings work in production, so if you fdk pack and then publish as a custom app it should work as expected. We noticed a small fix on fdk, thanks for bringing this to our notice.
Hey @Van_Hung_Hoang,
Do you see this error when installing the app for the first time? utils.get() would be able to fetch the values only when it’s installed, you would have to fetch the values from HTML DOM.