web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to retrieve a spec...
Power Automate
Answered

How to retrieve a specific field in a web service response?

(0) ShareShare
ReportReport
Posted on by 96

Hi all,

 

I'm just starting to use the Invoke Web Service step, and I was wondering if there's a way to retrieve a specific field from a response? For example, if I send a GET call that pulls back a customer's information with fields like "First Name", "Last Name", and "Address", how do I pull just the first name from the response? I know I could probably write a substring that gets specific characters, but that seems a bit messy and unreliable. In other programming spaces it would be something like Response.Data("First Name") or something of the sort.

 

Thanks for the help.

EDIT: I should mention that this is a REST call using JSON.

I have the same question (0)
  • PBrt Profile Picture
    27 on at

    Hi,

     

    I guess it depends on what webservice you are using. Generally, REST webservices get you a JSon response.

    If so you can use "convert Json to custom object" function that will essentially create a list object that you can then parse easily (exemple %response%[0] to get first element).

     

    If your response is a XML file there are also a lot of premade option to parse XML files in PAD.

     

    However you should keep in mind that REST webservices won't always get you an answear with the same structure, for exemple "first name" might not be in the response from the server. So when you parse your custom object you may have errors if you try to get something that doesn't exist.

     

    Best regards

  • Verified answer
    IAQG Profile Picture
    96 on at

    Thanks for responding. It is a REST call with a JSON response, I should have mentioned that. I did not know about the JSON to object step, so that helped get me to where I needed to be. Thanks.

     

    For the example, though, I did try your method of %response%[0], and that gave me a concatenation instead of a response, and putting the [0] inside the symbols didn't work either. For me the successful format was %response.first_name%.

    Thanks for the help, though, you definitely put me on the right path.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 862

#2
Valantis Profile Picture

Valantis 738

#3
Haque Profile Picture

Haque 553

Last 30 days Overall leaderboard