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
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 (83,085)