...
Three double quotes will allow for multiline strings in groovy.
...
Code Block |
---|
"Authorization=Bearer " + SECURE_TOKEN_PROPERTY + """
Accept=application/json
Content-Type=application/json""" |
The -d (--data) goes to the body. If you used a body path, it goes there instead.
...
Create workflow variables and reference them here. In this case, we made and used workflow variables ResponseCode and ResponseString.
...
If you are expecting to receive json or xml back, you may want to parse it and make decisions on it.
...