cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
baxschwepo
Helper I
Helper I

Group by Sharepoint List - send rows separately

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
baxschwepo
Helper I
Helper I

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

View solution in original post

1 REPLY 1
baxschwepo
Helper I
Helper I

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

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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (2,145)