cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Replace MS Teams Shifts SchedulingGroupID with a string.

Hello world,

 

I wish to create a flow in Power Automate that allows me to automatically export all shifts in MS Teams and send the results via email (html table) to certain email addresses. Thus far, no issues. However, in the export I'm also including the schedulingGroupId from Shifts. This long ID starting with TAG_...., however, needs to be replaced by a string and I don't know how. 

 

Currently, the flow looks like this: 

jtsvba_0-1606467510202.png

 

In the Apply to all, you find (a.o.):

 

jtsvba_0-1606467860980.png

 

The issue is that Shifts Schedulin... needs to be replaced by a more readable string. For example,

  • All TAG_eABCD occurences need to be replaced with "Category 1"
  • All TAG_eEFGH occurences need to be replaced with "Category 2"

Does someone know the solution to this?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

Hi @jtsvba,

 

You should be able to retrieve the Scheduling Group Display Name by adding the Get a Scheduling Group action to your flow. Just populate that action with your Shift Scheduling Group Id value.

getaschedulinggroup.png

 

After that you should be able to retrieve the Scheduling Group Display Name dynamics value, which you can use in to create your HTML table. In my example I am putting it an Compose action.

 

Hope this helps a bit.

View solution in original post

2 REPLIES 2
Super User II
Super User II

Hi @jtsvba,

 

You should be able to retrieve the Scheduling Group Display Name by adding the Get a Scheduling Group action to your flow. Just populate that action with your Shift Scheduling Group Id value.

getaschedulinggroup.png

 

After that you should be able to retrieve the Scheduling Group Display Name dynamics value, which you can use in to create your HTML table. In my example I am putting it an Compose action.

 

Hope this helps a bit.

View solution in original post

This was exactly what I was looking for. Thank you very much!

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 (4,419)