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

Convert 1 day into 9 hours, 2 days into 18 hours and so on

Hi,

 

I have a HR app I'm syncing to a CRM app using API that bit all works but I need to convert days into working hours so

 

Half day (0.5) = 4.5 hours

1 day = 9 hours

2 = 18 hours


And so on depending on what the HR app outputs as it outputs in days but the CRM works in hours..  So if i get a response from the HR app that 1 day is booked I need it to go into CRM app as 9 hours and so on dynamically depending on the days. Is there a way of doing this?

 

Ryan

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Convert 1 day into 9 hours, 2 days into 18 hours and so on

Hi @RyanMesser ,

 

Please take a try with the mul function as screenshot below:

1.png2.png

You could refer to link below to learn more about the mul function

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

 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

2 REPLIES 2
Highlighted
Super User II
Super User II

Re: Convert 1 day into 9 hours, 2 days into 18 hours and so on

Use a Compose action.

 

In the body do the following sum. DAYS_FROM_CRM * 9

 

1 * 9 = 9

2 * 9 = 18

0.5 * 9 = 4.5

 

and so on

Community Support
Community Support

Re: Convert 1 day into 9 hours, 2 days into 18 hours and so on

Hi @RyanMesser ,

 

Please take a try with the mul function as screenshot below:

1.png2.png

You could refer to link below to learn more about the mul function

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

 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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 (7,663)