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

Community site session details

Session Id : swWDZwPfmDVXu+4l2wVZP8
Power Automate - Building Flows
Answered

Getting a single value from a Parse Json

Like (0) ShareShare
ReportReport
Posted on 13 Dec 2023 16:04:46 by 11

Hello,

I am building a flow that takes the data from a Sharepoint List, then selects a value from that array that was created (The Sharepoint List). I then want to pass the array value into an approval step, but the issue I run into is that when I use the output from the SELECT flow as the assigned contact in the approval flow, it instantly makes it a FOR EACH. Which doesn't work since I only want a single output from the approval. My next idea was to use parse json and then compose to take the exact output I am looking for, but I can't seem to get the correct code.

 

Please see the below images:

 

psil101010_0-1702483388266.pngpsil101010_1-1702483427257.png

 

I have the same question (0)
  • JonDoesFlow Profile Picture
    1,304 on 13 Dec 2023 at 16:45:31
    Re: Getting a single value from a Parse Json

    This might help you - https://www.jondoesflow.com/post/first

    ---------------------------------------------------------------------------


    If I have helped you with an answer, please accept this post as a solution and thumbs up my reply. Thanks !

    Blog - JonDoesFlow
    Twitter - JonDoesFlow
    YouTube - JonDoesFlow

  • psil101010 Profile Picture
    11 on 13 Dec 2023 at 16:55:59
    Re: Getting a single value from a Parse Json

    Hello Jon,

     

    I have attempted this, the issue is that I am using the Select Option after the Get Items, to select a particular value first from the Get Items array. Once I have selected that, I want to be able to pass that through as the Assigned To field for the Approval step. 

  • psil101010 Profile Picture
    11 on 13 Dec 2023 at 16:59:28
    Re: Getting a single value from a Parse Json

    Please see the error I receive when I attempt to use the first option. 

     

    psil101010_0-1702486663434.png

     

    Mind you that I know that the admin email it is outputting is correct. It just isn't inputting correctly for the approval. The assigned to code I have for the input value is: 

    first(outputs('Select')?['body'])
     
    This is because the code for the correct admin email Select flow is:
    outputs('Select')['body']
  • Verified answer
    JonDoesFlow Profile Picture
    1,304 on 13 Dec 2023 at 17:16:14
    Re: Getting a single value from a Parse Json

    Try 

    first(outputs('Select')?['body'])?['Administrator email']

  • psil101010 Profile Picture
    11 on 13 Dec 2023 at 20:10:59
    Re: Getting a single value from a Parse Json

    This worked. Thank you very much!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 666 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 382 Moderator

#3
developerAJ Profile Picture

developerAJ 254

Last 30 days Overall leaderboard