cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Staffhub Time Off Management

I'm trying to build a flow that adds all time off from anyone to one shared Office365 calendar.  The closest I can get to making this work is using memberId as the Subject line of the Office365 calendar event.  Is there a way to convert memberId to members.displayName?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @aaron_m,

 

Could you please share a screenshot of your flow's configuration?

Are these members (that you mentioned) Office 365 users or the StaffHub members?

Further, do you want to get the Displayname of a StaffHub member within your flow?

 

I suppose that these members are the StaffHub members, is it true? If you want to get the Displayname of a StaffHub member based on the MemberId (e.g. 'MBER_fc841a77-7354-4991-af6d-2dc0bf502399'), please take a try with the following workaround:

  • Add a proper trigger, here I use Flow Button trigger.
  • Add a "List all members in a team" action, specify the Team Id.
  • Add a "Filter array" action, From set to Members Array of the "List all members in a team" action. Within condition box, left input box set to Member ID, right input box set to a specific member id (on your side, you should type memberId variable that you have gotten), middle drop down, choose is equal to.
  • Add a "Compose" action, Inputs set to following formula:
first(body('Filter_array'))?['displayName']

Image reference:1.JPG

The flow works successfully as below:2.JPG

 

 

 

Best regards,

Kris

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

Hi @aaron_m,

 

Could you please share a screenshot of your flow's configuration?

Are these members (that you mentioned) Office 365 users or the StaffHub members?

Further, do you want to get the Displayname of a StaffHub member within your flow?

 

I suppose that these members are the StaffHub members, is it true? If you want to get the Displayname of a StaffHub member based on the MemberId (e.g. 'MBER_fc841a77-7354-4991-af6d-2dc0bf502399'), please take a try with the following workaround:

  • Add a proper trigger, here I use Flow Button trigger.
  • Add a "List all members in a team" action, specify the Team Id.
  • Add a "Filter array" action, From set to Members Array of the "List all members in a team" action. Within condition box, left input box set to Member ID, right input box set to a specific member id (on your side, you should type memberId variable that you have gotten), middle drop down, choose is equal to.
  • Add a "Compose" action, Inputs set to following formula:
first(body('Filter_array'))?['displayName']

Image reference:1.JPG

The flow works successfully as below:2.JPG

 

 

 

Best regards,

Kris

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

New Member

Hi! I am looking to do this same thing but I don't know what connectors to use, and the images with the original problem don't include the office 365 calendar connectors! Unless I have read all of this wrong which is entirely possible...

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!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

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 (81,763)