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 :
Power Platform Community / Forums / Power Automate / Recursive Sub processes
Power Automate
Unanswered

Recursive Sub processes

(0) ShareShare
ReportReport
Posted on by 396

Hi there,

 

So I am having an issue with one of my flows where I need to recursively execute a part of my flow.

Let me explain the situation and what I am trying to achieve.

 

Let start with the tables and there relations:

Tables: Quote, Quote line, Article, Bundle Item, Staffel.

So I start of with a Quote that has multiple Quote lines and calculates the total price of all the lines. Each Quote line therefore is connected with a specific article and each article has multiple staffels in order to be able to give certain discounts depending on the amount that is being bought. Now an Article has a field called article type, being hardware, software, bundle, etc and recurring as in once, monthly, quartly, yearly, etc. So when a quote line has been made it runs a flow to detect what the prices are for that specific article based on quantity and its type and its recurring value. Now I also integrated a method to auto create delivery costs for that company when an article is of type hardware. When the article is of type bundle you are able to add other articles by adding bundle items and you can set the article for a bundle item aswell as its quantity and prices are automatically determined using a different flow. Now it is also possible to have a bundle inside of another bundle so price determination is sometimes a bit complex.

 

Now I am trying to expand the flow of "set the prices of a quoteline" by adding an implementation for when article type is a bundle. So if the article is of type bundle then I retrieve the article information and I list all bundle items of that article and loop over it and if that article is of type hardware then I need to add a delivery cost for it.

 

Problem is that if the article of type bundle contains articles that is also of type bundle I would need to do the same steps from before so it would be a recursive loop except I don't know how I need to do this. Also to be able to achieve this I would need the information from both the quote as the bundle itself.

 

So my question is it possible to recursively loop over something that requires ids from 2 different types of records and how do you do it, if not what is the best method to achieve this?

 

If any other information is needed, feel free to ask away!

 

Thanks in advance,

 

Billy Cottrell

Categories:
I have the same question (0)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard