cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Cannot see dynamic content options

Hi All,

I am working on flow, in which Sharepoint and Excel Online (Business) are connected.

The idea is for user to submit leave request,  which is approved by manager. This part works, everything is ok. Bur after adding From date and End Date business days (excluding weekends and holidays) have to be calculated and appear in separate field (Days). As I couldn't find solution for sharepoint similar as it is in Excel (Networkdays formula), I decided to have these calculations in Excel and then update Sharepoint field by adding this number of days, using Flow "Update Item function". Unfortunately I cannot do that as there is no option in Dynamic content to update Sharepoint field with value, calculated in Excel in field Days (1st screenshot) as it is in other fields (2nd Screenshot).

1.jpg 


2.jpg

 

Maybe someone could give an advise how to work it out?

Thanks in advance

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Cannot see dynamic content options

Hi @Dainius123  What is the datatype of the Days column of your sharepoint list? Is it the same as that of the column of the excel? what is the datatype that you want to fill in here? if it is an integer and the excel column will be a string but a number then in the sharepoint update item action, you can click on the Days column value and in the expression editor, type int() and with in the brackets select the excel column from the dynamic selector. (the excel column will appear when you tap inside of the bracket of the int function and click on the dynamic selector)

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
Community Support
Community Support

Re: Cannot see dynamic content options

Hi @Dainius123 ,

 

Column OTHours is type Number in the list.

 

It is using the Output of Compose action, and the function used in the Compose action is:

int(body('Get_a_row')?['Sub'])

Note: I am using function int to convert the string to an Integer so that it matches the column type.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
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

4 REPLIES 4
Highlighted
Dual Super User III
Dual Super User III

Re: Cannot see dynamic content options

Hi @Dainius123  What is the datatype of the Days column of your sharepoint list? Is it the same as that of the column of the excel? what is the datatype that you want to fill in here? if it is an integer and the excel column will be a string but a number then in the sharepoint update item action, you can click on the Days column value and in the expression editor, type int() and with in the brackets select the excel column from the dynamic selector. (the excel column will appear when you tap inside of the bracket of the int function and click on the dynamic selector)

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
Community Support
Community Support

Re: Cannot see dynamic content options

Hi @Dainius123 ,

 

Do you want to update Days column in SharePoint list after the value calculated in the Excel file?

 

I assume that Days is of type Number. If so, you may need to use int function to convert the string to integer first.

 

Besides, after adding the item into the table, you need to get the added row again to update the list item

I have set up the flow likes below for your reference.

 

The function used in Compose is:

int(body('Get_a_row')?['Sub'])

1.PNG2.PNG

 

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Cannot see dynamic content options

Hi @v-yamao-msft ,

thanks for an answer. Could You please specify what goes to OTHours (marked yellow)?

 

Thanks

Highlighted
Community Support
Community Support

Re: Cannot see dynamic content options

Hi @Dainius123 ,

 

Column OTHours is type Number in the list.

 

It is using the Output of Compose action, and the function used in the Compose action is:

int(body('Get_a_row')?['Sub'])

Note: I am using function int to convert the string to an Integer so that it matches the column type.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
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

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Top Kudoed Authors
Users online (8,151)