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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Global variables appea...
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:
  • Mark Nanneman Profile Picture
    993 Moderator on at
    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard