microsoft-teams-apps-requestateam icon indicating copy to clipboard operation
microsoft-teams-apps-requestateam copied to clipboard

Request a team app step 7 error: Office365Groups.ListGroupMembers failed: { "error": { "code": "Request_BadRequest", "message": "Invalid object identifier 'Enter

Open goodlife2g2 opened this issue 3 years ago • 6 comments

I'm on step 7 of the 'Request a team' app deployment guide and get the following error when I try to add the app to Teams using the downloaded zip file.

Office365Groups.ListGroupMembers failed: { "error": { "code": "Request_BadRequest", "message": "Invalid object identifier 'Enter admins team group id here'.", "innerError": { "date": "2020-12-27T22:03:40", "request-id": "93d6bb1f-b2d4-463e-9da4-bd51adc4964a", "client-request-id": "93d6bb1f-b2d4-463e-9da4-bd51adc4964a" } } }

goodlife2g2 avatar Dec 28 '20 15:12 goodlife2g2

Edit the PowerApp in Tree View > App

The value should be something like this: If(CountRows(Filter(Office365Groups.ListGroupMembers("XXXXXXXXXX-XXXX-XXXXX-XXXX-XXXX").value, id = Office365Users.MyProfile().Id)) > 0,Set(showadmin,true),Set(showadmin,false)); Set(gblManagedPath, LookUp('Team Request Settings',Title="SPOManagedPath").Value)

If you're seeing the message above, add your Admin group ID and replace Office365Groups.ListGroupMembers("Enter admins team group id here") with Office365Groups.ListGroupMembers("XXXXXXXXXX-XXXX-XXXXX-XXXX-XXXX") where XXX is the GUID for the admins Team group

nikkelly avatar Jan 05 '21 21:01 nikkelly

First you’ll have to get the Admin group ID from the Team of admins outlined in step 2: Deployment guide · OfficeDev/microsoft-teams-apps-requestateam Wiki (github.com)https://github.com/OfficeDev/microsoft-teams-apps-requestateam/wiki/Deployment-guide#step-2-create-admin-group

Then in PowerApps after you import the package to PowerApps and configure the connections you’ll click on “App” in the PowerApps Tree view and replace Office365Groups.ListGroupMembers("Enter admins team group id here") to include the Admin group ID that you pulled in step 2<Deployment%20guide%20·%20OfficeDev/microsoft-teams-apps-requestateam%20Wiki%20(github.com)>.

From: Geowan23mailto:[email protected] Sent: Friday, January 8, 2021 1:18 AM To: OfficeDev/microsoft-teams-apps-requestateammailto:[email protected] Cc: Nik Kellymailto:[email protected]; Commentmailto:[email protected] Subject: Re: [OfficeDev/microsoft-teams-apps-requestateam] Request a team app step 7 error: Office365Groups.ListGroupMembers failed: { "error": { "code": "Request_BadRequest", "message": "Invalid object identifier 'Enter (#213)

Having exact same error, can you give more detail how to edit the power app in Tree View and which admin group ID would be used?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FOfficeDev%2Fmicrosoft-teams-apps-requestateam%2Fissues%2F213%23issuecomment-756645060&data=04%7C01%7C%7Cff2f97842be344306d9208d8b3b668c9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637456943310248928%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=YjWKHXGcOJy0TzTsZbWPYn6Kcw90brtZCRiqlxJwmGs%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FALFHZQAFRV5CIJKBWWMPRALSY3EXRANCNFSM4VMFTJUA&data=04%7C01%7C%7Cff2f97842be344306d9208d8b3b668c9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637456943310258918%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=piGVQENWdqlvorrUVP6ychWsYk%2BOYP%2FABM31zccCuZs%3D&reserved=0.

nikkelly avatar Jan 08 '21 21:01 nikkelly

Hi!

I am having the same issue. The message appears when I open the app to request a Team. image I've added the team group ID to the filed in TreeView > App and uploaded the app to Teams.

Any suggestions?

nianit avatar Jan 11 '21 09:01 nianit

Hi!

I am having the same issue. The message appears when I open the app to request a Team. image I've added the team group ID to the filed in TreeView > App and uploaded the app to Teams.

Any suggestions?

I found when I saved the app in Power App it had created a version, so in Power Apps I had to selected the app "Request a Team" clicked on the three dots and select details, click on versions and check its using the latest version you have saved.

Geowan23 avatar Jan 14 '21 15:01 Geowan23

I've had the same issue. In my case I forgot to save and publish the change: File -> Save -> Save -> Publish

EBOOZ avatar Apr 02 '21 12:04 EBOOZ

I had this problem too. @EBOOZ comment solved this for me.

After performing Step 3 -> sub-step 8. under https://github.com/OfficeDev/microsoft-teams-apps-requestateam/wiki/Deployment-Guide#step-3-set-up-power-apps, it's important to not only save but also "Publish."

pagejustin avatar Jul 29 '21 21:07 pagejustin