Custom function in Zoho Flow to use Zoho Analytics API to sync data between Zoho Analytics and Zoho Desk
Hello,
I want to use Refetch ata Endpoint:
https://<ZohoAnalytics_Server_URI>/restapi/v2/workspaces/<workspace-id>/datasources/<datasource-id>/sync
In Zoho Desk, we use the Zoho Analytics integration to synchronise data from Desk to Analytics. Since we want to automatically process a report, I want to reload the data via API before the export job is created and the data is sent to another service. That's when I noticed the "Sync Data" function, which seems to do exactly what I want. So in Zoho Flow I created a custom function and set up a connection to Analytics, named "analytics" in this example. So I tested the call as follows:
Unfortunately, I receive an error message as a result:
- "status": "failure",
- "summary": "INVALID_OAUTHSCOPE",
- "data": {
- "errorCode": 8540,
- "errorMessage": "This API request cannot be processed using the provided token. Kindly make sure that the token was created using the required scope."
- }
The connection that I set up in Zoho Flow has all rights, of course. On the documentation page of the Analytics API, I saw that username and password have to be passed in the CONFIG... what is this about?
The data source is the Desk integration in Zoho Analytics... there is no specific password, is there?
Regards,
Sven