cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RyanMesser
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
v-alzhan-msft
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
Gristy
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

v-alzhan-msft
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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (26,876)