I'm working on a flow with PowerApps trigger, so I get users email to add that person to a SharePoint Group.
Below is my flow. I'm trying to use "Claims" information. So basically I'm extracting the part before the @ from users email and concatenating to "@organization.onmicrosoft.com" to use on the last step.
On the last step I'm using these parameters:
But I'm getting this "InternalServerError", and the flow keeps trying to run this but without success.
What I'm doing wrong?
Hi, @gasilva8 ... try this ... take off the ;odata=verbose part from the Content Type ... if it still fails, put it back, and try it on the Accept ... but it's usually Content Type, I think.
Often times you can also try looking at any ID values that you might be using in the URI here, try ensuring that they're uriEncoded(). However that's not an issue for you as you're not.
The SharePoint and Graph APIs can be finickity about this at times, sometimes accepting them fine, and sometimes needing the encoding. I think if you just always encode, though, it usually works.
I tried to take off the odata=verbose part but it didn't work.
Could you please explain more about uriEncoded()? Where should I use it?
It's not needed on your URI, @gasilva8, so you're currently OK there.
Why don't you just use one of the users / groups actions in Power Automate?
Or is this for an old SharePoint group, not a 365 group?
Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.
Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.
The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.