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 / When item created, mul...
Power Automate
Unanswered

When item created, multiply by number in lookup table, create new item

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

I have a pretty good understanding of flow, but not with some of the more complex operations. Any help would be greatly appreciated. 

 

The overall goal is to track the usage of non-inventory items parts within inventory builds. 

 

I have three data sources CDS, SharePoint, & SQL Server. All of the the table examples I've created of course have several more columns, rows, etc. but I'm only focusing on the relevant points of data. The Flow I would like to create would go like this - 

 

When a job is completed in CDS 

 

BuildQtyDate Complete
xx-xxx-xxxxx510/26/2020

 

Look at table in SharePoint and look at the qty of each subpart within a build (this is a static SharePoint List). Build xx-xxx-xxxxx in this example is made up of three parts aa-aaa-aaaaa, bb-bb-bbbbb, cc-ccc-ccccc. 

 

BuildPart NumberQty
xx-xxx-xxxxxaa-aaa-aaaaa3
xx-xxx-xxxxxbb-bbb-bbbbb.6
xx-xxx-xxxxxcc-ccc-ccccc5

 

Insert rows into SQL server to show how many subparts were used 

 

DatePart NumberQty
10/26/2020aa-aaa-aaaaa15
10/26/2020bb-bbb-bbbbb3
10/26/2020cc-ccc-ccccc25

 

Hopefully, I've provided enough information, I look forward to your insight!

Categories:
  • Brayden Larson Profile Picture
    Microsoft Employee on at

    Hello Posey,

     

    You can use the built in expression functions to accomplish this.

    https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#math-functions

    braydenlarson_1-1603895126932.png

     

    With this you can basically have your flow setup to grab each individual item, then either through a variable or directly in the create of the SQL item, run the MUL function to get the total items.

    I used a hard coded Variable as an example of this function you can see below

    braydenlarson_0-1603895068030.png

     

     

    Just know that when setting this up on your end, you will basically select the Mul expression, then switch back to the Dynamic content tab to grab the fields in question you want to multiply together(You may also want to use a variable when first setting this up to make sure the values come out accurately before inputting them into your SQL DB)

     

    Have a good day,

  • dposey Profile Picture
    on at

    Thank you, 

     

    This still gives me a few pieces to work out but has defiantly gotten me closer to the end goal. 

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
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard