Hello guys, I have a question about the HTTP request step. I would like to perform a GET request with a variable that was previously collected from the requester.
For example:
Here is an example: https://br-demo-5.topdesk.net/tas/api/persons?query=phoneNumber==${telephone}
I've tried using (Topic.telephone), ${telephone}, and other methods, but nothing has worked yet.
Here's the problem: I don't know how to use a variable within the URL. Is there a correct way to do this, or is it not possible?
Hi @kush-sg
It seems you are not assigning variables correctly. Use Power Fx formulas when creating JSON with variables. See the example below for guidance.
If this was helpful:
⭐Please mark it as a solution
⭐Give me a thumbs-up
⭐Connect on LinkedIn
⭐I consistently upload technical videos. If you're interested, please visit and subscribe to my YouTube Channel
⭐Always glad to help, Umesh Khandelwal!
@fbanik
@v-xiaochen-msft
@Umianta
Hello guys
I am encountering the same issue. Could you please help me? I have attached a screenshot below.
Problem: I stored a value inside a variable (Var1) and tried to pass it in the HTTP POST request body.Value that i want to pass (Var1)
Payload - HTTP Post request
Response
It worked, thank so much!
Hi @fbanik
You can utilize the Power FX concatenate function to construct a URL incorporating variables. Refer to the example below for illustration.
If this was helpful:
⭐Please mark it as a solution
⭐Give me a thumbs-up
⭐Connect on LinkedIn
⭐I consistently upload technical videos. If you're interested, please visit and subscribe to my YouTube Channel
⭐Always glad to help, Umesh Khandelwal!
WarrenBelz
146,743
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,089
Most Valuable Professional