Skip to main content
Community site session details

Community site session details

Session Id : GyLbBlHjhgDkoj5aDANxFE
Copilot Studio - Calling Actions from Copilot S...
Answered

Unable to replace JSON data elements with user input variables. Additionally, how to externalize path parameters in HTTP PUT calls.

Like (0) ShareShare
ReportReport
Posted on 28 Nov 2023 20:01:36 by 6

HI Team.

   I am using the copilot studio for topic configurations. While making an HTTP PUT call, how can we configure  the path parameters.

The employee id is accepted via the question and stored to a local variable.

 

Sample api 

PUT /employee/:employeeId/UpdateData

 

Similarly for payload, how to externalize these based on user input.

{

"employeeName" : "John Doe",

"DeparmentReference": "D123"

}

 

Tried through the copilot documentation, https://learn.microsoft.com/en-us/microsoft-copilot-studio/authoring-http-node

could not find the answers to these queries. Your help is appreciated. 

 

@HenryJammes , refer to the https://powerusers.microsoft.com/t5/Topic-Creation-Management/Unable-to-parse-JSON-from-HTTP-request/m-p/2467650#M1253 thread, but not tried to correlate the same on a external API.

Categories:
  • Jitendra9975 Profile Picture
    6 on 29 Nov 2023 at 14:11:44
    Re: Unable to replace JSON data elements with user input variables. Additionally, how to externalize path parameters in HTTP PUT calls.

    hey @HenryJammes , thanks a lot for your input. This works just great.

  • Verified answer
    HenryJammes Profile Picture
    on 28 Nov 2023 at 20:34:38
    Re: Unable to replace JSON data elements with user input variables. Additionally, how to externalize path parameters in HTTP PUT calls.

    Hi @Jitendra9975 

     

    In your HTTP request Body payload, you can make the content dynamic by switching from JSON to formula (Power Fx):

     

    {
    employeeName : Topic.employeeName,
    DeparmentReference: Topic.DeparmentReference
    }

     Same for the URL, you can use a formula to concatenate its different components:

     

    "https://domain.com/employee/:" & Topic.employeeId & "/UpdateData"

     

    Assuming you have all these already defined as variables.

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.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 169 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 150

#3
sandeep_angara Profile Picture

sandeep_angara 75 Super User 2025 Season 2

Featured topics

Loading complete