cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

Using ticks and shifts connector

Hello, I've been trying to build a holiday counter using shifts. I've been searching and struggling to use "ticks" to create a datediff style calculation in my holiday output notification. It seems that when I try to access ticks, I get a "null" error. Seemingly what I think I'm trying to do seems simple, but I'm not getting anywhere. I can't seem to access the ['shared shift']?['startDateTime'] element to create the ticks count. 

 

My flow is:

 

craigmk1987_0-1603020974626.png

craigmk1987_2-1603021066356.png

Here is where I'd like to put the count in, so that the table output in the email will display the number of days of holiday:

 

craigmk1987_4-1603021120419.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

 

Hi @craigmk1987 ,

 

You could use expression directly to get the start time and end time.

item()?['sharedTimeOff/startDateTime']

 

item()?['sharedTimeOff/endDateTime']

 

Best Regards,

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

1 REPLY 1
Community Support
Community Support

 

Hi @craigmk1987 ,

 

You could use expression directly to get the start time and end time.

item()?['sharedTimeOff/startDateTime']

 

item()?['sharedTimeOff/endDateTime']

 

Best Regards,

Community Support Team _ Barry
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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

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!

Users online (93,745)