When using graphql APIs, if there are graphql variables involved in the api call, where do we include them in the http request activity?
Hi @SS-user
You can use the variables in the request body as part of the JSON payload in HTTP Request activity.
Hope it helps you to understand.
Happy Automation ![]()
Let us clear / baselining terms:
graphql variables:
Example:
query getPet($pet_name: String!) {
pet(name: $pet_name) {
name
color
species
}
}
so, we can identify the GrapQLvariable as it starts with dollar sign
Http can handle variables via Get Or Post / Forms or within Body Payload
So it depends on the call details how to provide.
Bringing dynamics into the HTTP Request calls we have the common options of:
- bringing UiPath Variables into
- Arguments / Parameters
- Payload constructions
- …