Share via

Graph token not saving in variable

Raul Rubalcada 20 Reputation points
2025-11-15T02:22:32.5533333+00:00

I'm developing a Power Automate triggered from a SharePoint list to utilize the Graph API to create a Team. I successfully get the token with the HTTP step and parse it with the Parse JSON step, but when I use the Parse JSON output as the input for the Set variable step, it continues to be null. Anyone else coming across this? I've tried in 2 separate tenants and keep getting the same thing.

User's image

User's image

Microsoft 365 and Office | SharePoint | Development
0 comments No comments

Answer accepted by question author

Jayden-P 23,240 Reputation points Microsoft External Staff Moderator
2025-11-15T07:01:09.35+00:00

Hi @Raul Rubalcada

Thank you for posting your question in the Microsoft Q&A forum.

The field you’re referencing (access_token) is not located where Power Automate expects it, and therefore resolves to null when used in Set variable.

Your Parse JSON schema should look like this:

{
    "type": "object",
    "properties": {
        "token_type": {
            "type": "string"
        },
        "expires_in": {
            "type": "integer"
        },
        "ext_expires_in": {
            "type": "integer"
        },
        "access_token": {
            "type": "string"
        }
    }
}

And the flow is like this:User's image

Now the call returns the correct access_token.

User's image

User's image

I hope this helps.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".   

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.