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

Can't access Time Off instances

Dear Power Automate team,

I just discovered the new actions for Shifts for Microsoft Teams connector which allows you to work with Time Off instances. Getting a instance will return an object with the following snippet containing various information:

 

    "sharedTimeOff": {
      "timeOffReasonId": "TOR_32683a04-f356-4457-938f-45baa02720ee",
      "startDateTime": "2020-09-23T22:00:00Z",
      "endDateTime": "2020-09-24T22:00:00Z",
      "theme": "blue"
    }

 

 

If you then want to get those information Power Automate will try to address them using a wrong call resulting in no actual information being accessed. Instead of calling the category by "sharedTimeOff" it tries to get the desired information by calling "sharedShift".

 

 

Hope this helps!

 

Best regards,

Malte

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Can't access Time Off instances

 

Hi @MalteM ,

 

Thank you for your reminder. After testing, it is found that the Dynamic content used to obtain sharedTimeOff is invalid, and the attribute name it refers to is invalid.

54.PNG

The REST API also shows that we need sharedTimeOff to get this property value.

https://docs.microsoft.com/en-us/graph/api/schedule-list-timesoff?view=graph-rest-1.0&tabs=http#resp...

 

I will report this problem to PG to fix it. Thank you again for your support.

 

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

Re: Can't access Time Off instances

 

Hi @MalteM ,

 

Thank you for your reminder. After testing, it is found that the Dynamic content used to obtain sharedTimeOff is invalid, and the attribute name it refers to is invalid.

54.PNG

The REST API also shows that we need sharedTimeOff to get this property value.

https://docs.microsoft.com/en-us/graph/api/schedule-list-timesoff?view=graph-rest-1.0&tabs=http#resp...

 

I will report this problem to PG to fix it. Thank you again for your support.

 

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

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Users online (6,445)