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 Automate
Answered

Get ID Question

(0) ShareShare
ReportReport
Posted on by

Hi All,

I have an output which contains the responder, submit date, and ID for the question. Well, I have a case where I only take the ID for the question.

vividichtarosa_1-1718854429578.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @vividichtarosa ,

     

    Please try this.

    Get first question's ID.

    xpath(xpath(xml(json(concat('{ "root": ', string(outputs('Get_response_details')?['body']), ' }'))), '/root/*')[2], 'name(/*)')

    Change the number to get other question's ID.

    vmengmlimsft_0-1718858071600.png

     

     

    Best regards,

    Rimmon

  • vividichtarosa Profile Picture
    on at

    Hi @v-mengmli-msft ,

    Thanks Rimmon. I have implemented it but only 1 ID is called.

    vividichtarosa_0-1718872931271.png

     

    Is there any solution again?

  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @vividichtarosa ,

     

    Have you tried change number to get another ID?

    vmengmlimsft_0-1718873358837.png

    If you want to put all ID in array or combine all ID, you can use loop.

    For example, create an array like following array and initialize a variable.

    [
    2,
    3,
    4
    ]

    Then put the array in Apply to each and add Append to string or Append to Array action in Apply to each.

    In Append to string variable action.

    xpath(xpath(xml(json(concat('{ "root": ', string(outputs('Get_response_details')?['body']), ' }'))), '/root/*')[item()], 'name(/*)')

     

    Best regards,

    Rimmon

  • vividichtarosa Profile Picture
    on at

    hi @v-mengmli-msft ,

    Thank you so much for your input Rimmon. You are amazing

  • vividichtarosa Profile Picture
    on at

    hi @v-mengmli-msft ,

    I have one question again. How i can get value (yellow color) but use syntax like this? 

    xpath(xpath(xml(json(concat('{ "root": ', string(outputs('Get_response_details')?['body']), ' }'))), '/root/*')[item()], 'name(/*)')

    vividichtarosa_0-1719211073585.png

     

     

  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @vividichtarosa ,

     

    Please post the new question in a new post with a related topic.😀

     

    Best regards,

    Rimmon

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 312 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 154 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 143 Super User 2026 Season 2

Last 30 days Overall leaderboard