web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Office365Groups.ListGr...
Power Apps
Unanswered

Office365Groups.ListGroupMembers - Error when used in component (dialog popup)

(0) ShareShare
ReportReport
Posted on by 77

Hi all, 

 

I have created a component for a dialog popup message. The message and input fields can be customized based on the component input table field. One of the fields in the component is a combobox to select people, with the following properties: 

  •  Items: Sort(Office365Groepen.ListGroupMembers(cmpDialogV3.DialogIn.GroupID).value;displayName);
    • cmpDialogV3.DialogIn.GroupID: Any Office group ID, as text input  
  • DefaultSelectedItems: Filter(Office365Groepen.ListGroupMembers(cmpDialogV3.DialogIn.GroupID).value;mail = cmpDialogV3.DialogIn.PeopleDefaultMail);
    • cmpDialogV3.DialogIn.PeopleDefaultMail = an email adres to select a person by default, as text input 

I found that using the ListGroupMembers gave me the most flexibility to use the dialog popup in different apps. 

When used in the app, I sometimes get the following error message = Office365Groepen.ListGroupMembers has an invalid group ID (see also attached image). What really irritates me, is that the error message is not consistent.

 

Sometimes the error message appears when starting the app; when navigating to a new screen; or when the dialog was closed and a different operation was started (for instance to create a task). The second one is really strange to me since the component is not even triggered and the input is not changed when navigating to a different screen. 


I tried to solve the issue by adding a "IfError" statement for both Input and DefaultSelectedItems. I hardcoded the group ID, to make sure it is has a valid ID. Unfortunately, this is not working. 
So the code is:  

  • IfError(
    Filter(Office365Groepen.ListGroupMembers(cmpDialogV3.DialogIn.GroupID).value;mail = cmpDialogV3.DialogIn.PeopleDefaultMail);
    Filter(Office365Groepen.ListGroupMembers( "HARDCODED GROUP ID").value;mail = cmpDialogV3.DialogIn.PeopleDefaultMail))

I also created an OnStart collection to make sure the input field is always filled. Even when the dialog is not triggered yet. 

The default group ID is the one with all users, to make sure it can always find the email.

 

Does anyone else experience this error? and does anyone know how to solve it? Would be of great help, so thank you in advance!!! 

 

Kind regards, 

Reinier 

Categories:
I have the same question (0)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard