cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

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
Resident Rockstar
Resident Rockstar

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

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (9,593)