cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
katesmith42
New Member

Get User Profile (V2) for multiple users & use array values in a summary table at the end

I have a sequential approval flow manually triggered from a file in Sharepoint that prompts users for email addresses and accepts multiple email addresses per field separated by a semicolon. I need to pull JobTitle and Department for each email, and include that information in a summary table at the end. I am struggling with storing the details and using them later. Here is what I have so far:

 

After I initialize an empty array variable, I am splitting and appending the email addresses to the array:

Variable Creation & Profile LookupVariable Creation & Profile Lookup

 

Then, I am trying to create a table to include an email with a summary of displayName, jobTitle, and department from the array varible I created earlier after the Get User Profile (V2). What am I doing wrong?

Table creation for email.Table creation for email.

 

1 REPLY 1
ekarim2020
Super User
Super User

We can start with the Append to Array variable action.

ekarim2020_3-1631918759120.png

The above text used as an expression will not work. The expression needs to be entered in the expressions editor  for it to be evaluated and executed, as the example below shows:

ekarim2020_0-1631917370468.png

The split function will return a collection or array of values as the example below illustrates:

ekarim2020_2-1631918060758.png

 
Ellis

 


____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,649)