cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mfosterbdp
Level: Powered On

Passing Compose Parameter Into Add Days Forumla

Hi 

 

I'm looking to pass a parameter into the below Flow formula, so rather than having the 80 days hard coded it can be user defined

 

I'm pulling the value in via an Excel workbook, then pull it into a compose statement called 'Get modified parameter value'

 

So I played around with the 2nd formula but had not luck and the formula is invalid, I think it maybe a data type issue? 

 

formatDateTime(addDays(utcNow(), - 80),'yyyy-MM-dd')

 

formatDateTime(addDays(utcNow(), - Outputs('Get_modified_parameter_value')),'yyyy-MM-dd')

 

Any help would be greatly appreciated 🙂 

Many thanks! 

 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Passing Compose Parameter Into Add Days Forumla

 

Hi @mfosterbdp ,

 

Please try to use this expression:

addDays(utcNow(),sub(0,int(outputs('Compose'))),'yyyy-MM-dd')
Image reference:
60.PNG
 
For more details on WDL function, please check this Online doc:
 
Best Regards,
Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Dual Super User
Dual Super User

Re: Passing Compose Parameter Into Add Days Forumla

Hi @mfosterbdp 

 

Use below expression

 

formatDateTime(addDays(utcNow(), sub(Outputs('Get_modified_parameter_value'),mul(2,Outputs('Get_modified_parameter_value')))),'yyyy-MM-dd')

 

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Community Support Team
Community Support Team

Re: Passing Compose Parameter Into Add Days Forumla

 

Hi @mfosterbdp ,

 

Please try to use this expression:

addDays(utcNow(),sub(0,int(outputs('Compose'))),'yyyy-MM-dd')
Image reference:
60.PNG
 
For more details on WDL function, please check this Online doc:
 
Best Regards,
Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

mfosterbdp
Level: Powered On

Re: Passing Compose Parameter Into Add Days Forumla

@v-bacao-msft 

 

Many thnaks ! 

 

Worked a treat, and thanks for the doc ref, learning more each day! 

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,497)