Zoho Flow invokeurl - INVALID_URL_PATTERN Error with Zoho FSM "users" Module

Zoho Flow invokeurl - INVALID_URL_PATTERN Error with Zoho FSM "users" Module

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:

  • I'm using Zoho Flow to automate a process that requires accessing user information from Zoho FSM.
  • I'm using the invokeurl task with a GET request.
  • The connection to Zoho FSM in Flow is established and authorized.
  • I'm constructing the URL to access a specific user by ID.

Here's an example of the URL I'm currently using:

Code snippet
userUrl = "https://fsm.zoho.com/fsm/v1/users/" + ownerId.toString() + ".json";

I've also tried numerous variations of this URL, including:

However, I consistently receive the following error in the invokeurl response:

JSON
{"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:

Code snippet
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:

  1. What is the exact and correct URL format for accessing a user by ID in the Zoho FSM API when using invokeurl in Zoho Flow?
  2. Are there any specific headers or other invokeurl parameters that are required for the 'users' module that might be different from other FSM modules?
  3. Are there any known quirks or limitations in how Zoho Flow handles Zoho FSM API calls, particularly with the 'users' module?

I'm providing as much detail as possible to help you understand the issue. Any insights or suggestions would be greatly appreciated!