I’m using the HTTP request activity from UiPath.WebAPI.Activities and have the need to conditionally add a header if a specific variable has a value.

I don’t seem to see a way to do this.
Ideas?
Thanks.
Best regards,
Matthew H
I’m using the HTTP request activity from UiPath.WebAPI.Activities and have the need to conditionally add a header if a specific variable has a value.

I don’t seem to see a way to do this.
Ideas?
Thanks.
Best regards,
Matthew H
If if conditions and use multiple http requests based on the condition
If header key can be present but if value cna be send nothing can can do that…but I dont think that would be the case
Cheers
Thanks for the suggestion @Anil_G
While that should work, the main issue that I see is that there are several combinations of variable present/not present that would require something like 8 or more logical conditions.
The ideal would be if the Headers dictionary collection could be built prior to the Http request call and passed as a parameter in properties.
But I will likely have to go down the route you suggest for now.
Thanks.