Variable Transform in chains: Replace text error
RéponduHello,
I am building a chain to extract a document to DOCX using Workiva API.
At the second step of the chain, Workiva returns in the HTTP Header the Location (i.e. URL) of the file in a JSON format that looks like this
| "Location":["https://api.eu.wdesk.com/platform/v1/operations/XXX"] |
I want to get rid of the [" and "] to retrieve the clean URL for the next step of the chain.
I tried multiple way including panning or RegEx but I get similar error. For instance if I try this:

I receive the following error: Error building Command: Replace transformation: Invalid value, pattern, match, or replacement provided
Any ideas of how to handle this?
Thanks
-
Did you try escaping the [ character in your RegEx, since it is a RegEx control character?
If not, you could try something like [\[\]"] as your pattern, where the three characters the Regex will look to replace are [ ] and " and the brackets you're looking for have been escaped with \ inside the RegEx control brackets.
0You can retrieve the Location URL value in the GET request by getting the 0th element of the Location array. Below is a screenshot of the transformed Header Response variable from the Initiate a document export POST request.
0Vous devez vous connecter pour laisser un commentaire.
Commentaires
2 commentaires