Automation of Tags on Tasks
I have written a deluge custom function
- endPoint = "https://projects.zoho.com/api/v3/portal/";
- tagsParam = Map();
- tagsParam.put("tag_id","2342963000000148480");
- tagsParam.put("entity_id",taskid);
- tagsParam.put("entityType",5);
- url1 = endPoint + portalId + "/projects/" + projectId + "/tags/associate";
- response = invokeurl
- [
- url :url1
- type :POST
- parameters:tagsParam
- connection:"cdzohoprojectstasks"
- ];
- return response;
When I run the custom function and provide the task ID.
I get this
- {"error":{"status_code":"401","instance":"/api/v3/portal/858012919/projects/2342963000000148005/tags/associate","title":"INVALID_OAUTHSCOPE","error_type":"FIELDS_VALIDATION_ERROR","details":[{"message":"Invalid OAuth scope."}]}}
As this is my first custom function I understand what it is saying I think. I suspect that one of my mapped params is wrong. Any direction can be helpful.