cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
RyanMesser
Level: Powered On

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

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
Gristy
Level 10

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

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,498)