The API I'm using in my workflow is IDM/api/items/search and when running it in API Gateway, my search query is valid and I get the expected response.

But I need to retrieve the value in the pid element in the XML response and map it to one of my workflow parameters. The response content type of this API is application/XML and when I've specified the XPath and mapped it to a workflow parameter and testing it, I receive an error message "The search request could not be performed. Make sure that all search parameters are correct.".



How do I define the XPath in the output parameters to map the pid to my workflow parameter?