Announcements
Every time i save my changes, the page refreshes and my changes disappear. I guess it doesnt like Topic.Transcript by itself. If i put it within brackets however and with a key (Topic.Transcript as value) then no problems. So it seems to be a type conversion issue between trying to set record variable as json object. How can i convert this variable to json? the schema of the variable is as follow:
I think it's "just" a UI issue. If you peek at the YAML code for the topic, you can see the request body is populated with whatever formula you assigned in the UI, and based on my tests, the call executes successfully.
I think you can raise a case with support regarding the UI - Get Help + Support in Power Platform - Power Platform | Microsoft Learn
Here is the code for my topic:
kind: AdaptiveDialog beginDialog: kind: OnRecognizedIntent id: main intent: triggerQueries: - http actions: - kind: SetVariable id: setVariable_pgxUkP variable: Topic.body value: "={key:\"value\"}" - kind: HttpRequestAction id: syBaJ9 url: https://myurl.com body: kind: JsonRequestContent content: =Topic.body
Hello, @adilei
I am experiencing an issue with passing user input (variable) in the body of an HTTP POST request in CoPilot Studio. Attached are screenshots illustrating the problem.
Could you please help me resolve this issue?
Thank you.
Best regards,Kushagra SharmaVariable (Var1), that i want to pass inside payload
HTTP - Post request body
response
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Mohsin Ali 163
Dua Sadiq 125
11manish 93 Super User 2026 Season 2