mogranovitch
3 years agoOccasional Contributor
Random value in the GraphQL Header
Hi!
For each graphQL call I need to submit executionId UUID value as one of the Headers values.
Is there a way to use something like "${java.util.UUID.randomUUID()}" directly in the Headers to generate brand new id on the fly?
Currently it's not generating any value and sends empty string so I have to use previously generated property value.
Thanks!
Hi,
> something like "${java.util.UUID.randomUUID()}"
I did not try exactly your case with GraphQL, but https://www.soapui.org/docs/scripting-and-properties/property-expansion/#2-Dynamic-Properties makes me hope that this might work:
${=java.util.UUID.randomUUID()}
(note added equal sign (=))