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 Automate / Can't populate variabl...
Power Automate
Unanswered

Can't populate variable with parse JSON output

(0) ShareShare
ReportReport
Posted on by 10

Hey community,

 

I'm running a delta graph query against my AAD users. Idea is to get the users delta each day and store the DeltaLink in a sharepoint file or list - doesn't matter.

As I am getting multiple NextLinks in my flow I want to cycle through them with Do_until so I do get my DeltaLink for running the flow on the next day again.

Can't use pagination in HTTP with delta as this results in a NULL response from the HTTP action. Thats why I want to cycle through the NextLinks

 

After running the http request I parse the output in JSON. I want to fill a variable with NextLink to start my cycle.

However the value of the variable is NULL when running the flow although the HTTP request and the parse JSON do contain the NextLink Data.

 

The flow

DIrk_Meier_0-1677769553213.png

 

The variable is of type string, the NextLink Uri is about 10.000 characters so it doesn't run against any limitations.

(The URI can be manually stored in a variable and run without problems)

 

I have used the HTTP output (body) from this flow as the payload for creating the JSON. So I assume thats not the problem.

DIrk_Meier_1-1677769808335.png

 

Input and Output of analyse JSON do contain the NextLink

DIrk_Meier_3-1677770191635.png

The variable will not be filled with data.

DIrk_Meier_4-1677770302446.png

 

 

The result -> Value = NULL

DIrk_Meier_2-1677770057682.png

 

Whats going on? 😕

 

Thanks

Dirk

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hi @DIrk_Meier 

    You should create different branches in the workflow, depending on whether it's the first call or next ones.

    2019-01-17-flow-msgraph-delta-query-52

     

    Please, read this excellent post on how to manage those calls: Microsoft Graph Delta Query from Microsoft Flow: Part 3 | AbleBlue LLC

    Hope that helps!

    Ferran

  • Verified answer
    DIrk_Meier Profile Picture
    10 on at

    Thank you for the feedback, it is something worth considering for the future.

    The problem was indeed something else and I was able to fix it.

     

    Parse JSON created items with a wrong terminology.

    DIrk_Meier_0-1678103976237.png

    The second ['body'] is wrong in this case. I had to write the code myself and omit the second ['body'].

    Why its doing this I dont't know, the schema is correct and we can't find a reason for the second ['body'] to come up. I was able to replicate this with user and group graph calls using delta in other flows though.

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard