web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Global variables appearing as "blank" when calling a Power Automate flow

(0) ShareShare
ReportReport
Posted on by 3
I noticed that parameters that I'm populating with global variables are displaying as "blank".  
 
The only reason that I took notice is that in one environment the flow is running and in another it isn't.  When comparing them, I saw that the variables are blank in both.
 
So, in the code below the gblCaseNumber and gblStudentID variables are displaying as blank.  It's clearly not affecting anything in our development side, but I wasn't sure if that was normal behavior or not.
 
 
Set(
    varViewSpinner,
    true
);
UpdateContext({locSpinnerMessage:  "Printing page.  Please wait."});
UpdateContext({locPrintInfo:  GetreferralformdataintoHTML.Run(gblCaseNumber, gblStudentID,User().Email)});
Notify("Your requested report will be sent via email link", NotificationType.Information);
Set(
    varViewSpinner,
    false
);
 
Categories:
I have the same question (0)
  • Mark Nanneman Profile Picture
    989 Super User 2025 Season 2 on at
    Global variables appearing as "blank" when calling a Power Automate flow
    I'm assuming gblCaseNumber and gblStudentID these are either integer or string variables?

    Are you positive they're being set before the code you posted is run? 

    You could try adding a conditional to your code to warn you if either of the variables is blank.  You could also modify this to let you know if they don't have enough character length with a len function, or add more conditions to let you know which one is blank, etc.
     
    If(
    IsBlank(gblCaseNumber) Or IsBlank(gblStudentID),
    Notify("ALERT! gblCaseNumber or gblStudentID is blank!",NotificationType.Warning,2000),
     
    //your existing code here

    UpdateContext({locSpinnerMessage:  "Printing page.  Please wait."});
    UpdateContext({locPrintInfo:  GetreferralformdataintoHTML.Run(gblCaseNumber, gblStudentID,User().Email)});
    Notify("Your requested report will be sent via email link", NotificationType.Information)
    )


     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 655 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 391 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 225

Last 30 days Overall leaderboard