Hi power apps experts,
I have a security group to which I am adding and deleting members from my power app.
The issue is, I am showing group members using a gallery - items = Office365Groups.ListGroupMembers("xyz123")).value
After deleting or adding a member, the gallery does not get updated..
how do I refresh the gallery?
I tried putting this code on adding members button:
Office365Groups.AddMemberToGroup("xyz123",TextInput1.Text);
Refresh(Office365Groups.ListGroupMembers("xyz123").value)
The refresh part gives error saying: "Only managed connections can be refreshed"
Does anybody know how I can updated my gallery to reflect my changes in real time. The refresh part always works with sql server, but I guess when I use Office365Groups.ListGroupMembers("xyz123") as my gallery datasource, I need to refresh it in another manner.
Any help would be appreciated. 🙂

Report
All responses (
Answers (