Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Error on List group members connector

(0) ShareShare
ReportReport
Posted on by 294

Good Afternoon

 

I'm building a flow to manage Onboarding and as part of it, I want to add the new staff member to a Team. Because sometimes we relocate people internationally, it can happen that the staff member is already part of the Team so I need to implement an error catch.

 

First learning, the Teams connection List members doesn't really list the members of a team. I can only see the option for a group chat (could be useful for meetings?) and it should work on a channel but that gives me the error that I don't have sufficient clout. I'm the owner so possibly our company restricts that.

 

But when I try to get the members of the Office 365 group, I get this error: 

InvalidTemplate. Unable to process template language expressions in action 'List_group_members' inputs at line '0' and column '0': 'The template language expression 'json(decodeBase64(secrets('X-MS-APIM-Tokens')))['$connections']['shared_office365groups']['connectionId']' cannot be evaluated because property 'shared_office365groups' doesn't exist, available properties are 'shared_sharepointonline, shared_office365, shared_outlooktasks, shared_teams'. Please see https://aka.ms/logicexpressions for usage details.'.

 

I don't input that property and I pick the Team from a list. 

 

What is going wrong? I can't really see how I can change anything to sort this out?

 

Thanks,

Christine

  • Amapola188 Profile Picture
    294 on at
    Re: Error on List group members connector

    Additional info:

     

    Peek code:

    {
        "inputs": {
            "host": {
                "connection": {
                    "name""@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$connections']['shared_office365groups']['connectionId']"
                }
            },
            "method""get",
            "path""/v1.0/groups/@{encodeURIComponent('cxxx')}/members",
            "authentication": {
                "type""Raw",
                "value""@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"
            }
        }
    }
     
    The property actually comes from the trigger. Still not something I can change but really odd.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1