Architect 'Get Schedule' action 422 during shift swap validation

422 Unprocessable Entity: “Invalid agent ID format” returned by the Get Schedule action when passing the agentId from a shift swap webhook.

Using Architect v2.1 with the WFM integration module. The agentId is pulled directly from the shift swap request payload and passed as a string. Why is the WFM API rejecting the format if it matches the standard UUID structure?

Check your data type conversion in the Set Variable block. The WFM API expects an integer for agent ID, not a UUID string, which is a stark contrast to Zendesk where ticket IDs are often handled as strings. Cast the incoming webhook value to an integer before passing it to the Get Schedule action.