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 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:
I have the same question (0)
  • Mark Nanneman Profile Picture
    991 Super User 2025 Season 2 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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard