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 / Group by Sharepoint Li...
Power Automate
Answered

Group by Sharepoint List - send rows separately

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi members, 

 

I have a sharepoint List containing order data. There is an order_id (pruefschritt_f_id) as foreign key and then some lines with material with this foreign key (in the following example pruefschritt_f_id 2981 and 2980.

I want to send out emails for each order containing the material lines for invoicing. 

 

What I did so far: 

 

baxschwepo_0-1616134750039.png

Output looks good:

baxschwepo_2-1616134946742.png

 

 

baxschwepo_1-1616134825207.png

grouping works, output is grouped..

 

baxschwepo_3-1616134999006.png

baxschwepo_5-1616135163848.png

Apply to each works properly, 

baxschwepo_4-1616135030283.png

But the output is empty:

baxschwepo_6-1616135211238.png

When I replace the [current item] of  [filter array 2] by manually with 2981 it works.

 

So, somehow it is connected to the "current item" variable / object, but I cannot "look" inside the variable...where is the error??

 

Anybody knows what to do? 

 

Here the overview of my actions:

baxschwepo_7-1616135444122.png

 

 

Categories:
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi to all, 

     

    found it out myself: the reason was that the variable contained Json Item: "OrderNo": 2981, so the filter function worked but of course not with the correct value. 

     

    To get just the foreign key you need to enter the following expression: 

     

    items('Apply_to_each')['OrderNo']

     

    Ah, I am glad...it is so cool to achieve things !!

     

    Best 

     

    SwiPowE

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 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard