cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Convert Float to Integer Ms Flow in addDays Expression

I have column in SharePoint list with type data Number.

6.png

 

I want convert from float to integer, because showing error message at my flow:

4.png

 

 

 

 

Please Check My Flow:

7.png5.png

 

How to convert from type data Number to Float (base on to error message). Because I want create calculated Planned Due Date = addDays(utcNow() + estimated sailing in duration. Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Convert Float to Integer Ms Flow in addDays Expression

Hi @krfajar,

 

Does your Float number contain decimal places? If not, you could put the int() function into the second parameter of addDays() function:

addDays(utcNow(),int(variables('Float')),'yyyy-MM-dd')

Annotation 2020-08-14 094958.jpg

 

If it contains, you should remove the decimal part, for example:

first(split(string(variables('Float')),'.'))
addDays(utcNow(),int(outputs('Compose_2')),'yyyy-MM-dd')

Annotation 2020-08-14 132214.jpg

 

Best Regards,
Community Support Team _ Lin Tu
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
Highlighted
Super User III
Super User III

Re: Convert Float to Integer Ms Flow in addDays Expression

hi @krfajar please add int() and inside it your current expression like int('Here your current expression')



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
Highlighted
Helper III
Helper III

Re: Convert Float to Integer Ms Flow in addDays Expression

Hi @

 

 

 

 

 

 
Highlighted
Community Support
Community Support

Re: Convert Float to Integer Ms Flow in addDays Expression

Hi @krfajar,

 

Does your Float number contain decimal places? If not, you could put the int() function into the second parameter of addDays() function:

addDays(utcNow(),int(variables('Float')),'yyyy-MM-dd')

Annotation 2020-08-14 094958.jpg

 

If it contains, you should remove the decimal part, for example:

first(split(string(variables('Float')),'.'))
addDays(utcNow(),int(outputs('Compose_2')),'yyyy-MM-dd')

Annotation 2020-08-14 132214.jpg

 

Best Regards,
Community Support Team _ Lin Tu
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,166)