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 / Get information for ne...
Power Automate
Unanswered

Get information for next line of Array

(0) ShareShare
ReportReport
Posted on by 18

Hi,

 

I have this array:

 

 

[
 "Your Email Address:",
 "test@test.com",
 "Number:",
 "45",
 "City:",
 "Melbourne",
 "Date:",
 "14 Jan 2023",
 "Type:",
 "Placement",
 "Select Indication:",
 "Other",
]

 

 

 

This array is not always in that order and has extra information I do not need but there are constants;

The information I need is always the next line after the field.

 

Example; If I want the email, "Your Email Address:" is always going to be before the data I want which is "test@test.com"

Another example; The name of the city will always be the next line after "City:".

 

What would be the formula to output the next line after the  "Your Email Address:", etc?

 

I'll be able to figure out the rest once I can get my head around this.

 

Thank you in advance!

 

Categories:
  • Sundeep_Malik Profile Picture
    6,501 on at

    Hey @elikls 

     

    I would suggest you to use Parse Json action for this. Giving you a video link below to understand more about it:

     

    https://www.youtube.com/watch?v=e0dzMqoJGtY

  • elikls Profile Picture
    18 on at

    Hi,

     

    Thanks for that - I followed on with the video but and used:

    {
     "type": "array",
     "items": {
     "type": "string"
     }
    }

     

    but that didn't do anything. So I am not sure how to continue

  • VictorIvanidze Profile Picture
    13,083 on at

    VictorIvanidze_1-1672817323011.png

     

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

    Hi @elikls ,

     

    I have a test for your reference, in my scenario I get the next row of "Date" of the array.

    vdezhilimsft_0-1672818454995.png

    vdezhilimsft_1-1672818575565.png

    vdezhilimsft_2-1672818636756.png

     

    Best Regards,

    Dezhi

     

  • VictorIvanidze Profile Picture
    13,083 on at

    Hi @v-dezhili-msft,

    don't you think that 'Initialize variable' is useless here? 

  • grantjenkins Profile Picture
    11,063 Moderator on at

    @elikls Just wondering how you get this data as it looks unusual having properties and values as single items in an array. Is it the result of extracting the data from somewhere?

  • elikls Profile Picture
    18 on at

    Thank you everyone - I will check out the solutions tomorrow at work. 

    As for the data it’s from an email I get forwarded to me from Formstack 🙂 I turn it into an array so it’s easier make automations 

  • VictorIvanidze Profile Picture
    13,083 on at
  • elikls Profile Picture
    18 on at

    I have, sadly I don’t own the form. I am just a user who fills it out and gets an email back with the confirmation of what I filled in

  • grantjenkins Profile Picture
    11,063 Moderator on at

    @elikls Are you able to show the raw data you receive before you convert it to an array? It might be that we can convert it to a proper object with key/value pairs rather than just an array of items.

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 414

#2
11manish Profile Picture

11manish 335 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard