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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Assistance Needed: Ext...
Power Automate
Suggested Answer

Assistance Needed: Extracting Value from Array in Power Automate

(0) ShareShare
ReportReport
Posted on by
Hi All. I have an array of results as follows:
 
["Template:Approval_By_Email_Result_Reject_en%0A@@Modify@@:[","22gg34ttggdg","]]"]
 
I need to extract the value "22gg34ttggdg" from this. 
 
Can you please suggest how I do this? 
 
Thank you. 
Categories:
I have the same question (0)
  • Suggested answer
    David_MA Profile Picture
    12,982 Super User 2025 Season 2 on at
    What you need to do will depend on some things. For example, is everything always the same in the array you listed except the value you want to extract? If so, do this:
     
    The expression in the compose action is: replace(replace(variables('Array'),'["Template:Approval_By_Email_Result_Reject_en%0A@@Modify@@:[","',''), '","]]"]', '')
     
    For the value of the initialize variable action, you'll pass your array into it so it converts to a string. You may need to adjust the expression if what goes into the variable is not exactly what you posted.
     
    If the content on the left and right of what you want to extract can vary, this gets much more challenging.

    Here is a run of the flow to show it works:

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard