I'm encountering an INVALID_URL_PATTERN error when trying to retrieve data from the Zoho FSM 'users' module using the invokeurl task in Zoho Flow. I've spent considerable time troubleshooting, and I'm confident that the authentication (Zoho FSM connection in Flow) is set up correctly, but the API URL format seems to be the issue.
Here's a breakdown of my problem:
invokeurl task with a GET request.Here's an example of the URL I'm currently using:
userUrl = "https://fsm.zoho.com/fsm/v1/users/" + ownerId.toString() + ".json";
I've also tried numerous variations of this URL, including:
https://fsm.zoho.com/fsm/api/v1/users/https://fsm.zoho.com/fsm/v1/users/ (lowercase "users")However, I consistently receive the following error in the invokeurl response:
{"code":"INVALID_URL_PATTERN","details":{},"message":"Please check if the URL trying to access is a correct one","status":"error"}
Here's an example of how I'm using invokeurl in my Deluge script within Zoho Flow:
if (ownerId != null && ownerId != "") {
userUrl = "https://fsm.zoho.com/fsm/v1/users/" + ownerId.toString() + ".json"; // Example URL
userResponse = invokeurl
[
"url" : userUrl
"type" : "GET"
"connection" : "fsm_to_desk1" // My Zoho FSM connection name
];
info "User Response: " + userResponse; // For debugging
// ... (Code to process the response)
}
My Questions:
invokeurl in Zoho Flow?invokeurl parameters that are required for the 'users' module that might be different from other FSM modules?I'm providing as much detail as possible to help you understand the issue. Any insights or suggestions would be greatly appreciated!