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
Highlighted
Community Support
Community Support

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

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

Highlighted
Community Support
Community Support

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
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.

Top Solution Authors
Top Kudoed Authors
Users online (14,102)