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 / App Web Player, and Ap...
Power Apps
Suggested Answer

App Web Player, and App Previewer behaving differently

(1) ShareShare
ReportReport
Posted on by 4
I have an application that is behaving differently for the app web player and the app previewer in edit mode. In the web app player one of my app's global variables is not properly being set.
In the app previewer in app edit mode the app will properly gather the correct data from a link PowerAutomate flow and display it in the app:
As you can see all three of the fields are filled out properly.
But, in the web app player it does not properly gather the correct data from the linked PowerAutomate flow. I have 
In this instance the "Year Term" field is not fetching any data and instead displays the data I have set the label to display if the variable is blank.
Weirdly in the mobile PowerApps app player, the app does properly gather and display the correct data.

This is the execution of the run PowerAutomate flow triggered to load the data for the web app's screen shot:
As you can see the flow is working properly and sending the data they way it should in the format it should.

Here is the code used in the AppOnStart to set the variables that display in the "Year Term" field:
Set(
    gblYRTR,
    Blank()
);
//Get Current YRTR information
Set(
    gblYRTR_request,
    'RCTC-AdvisorVue-v3-Student-GET_CURRENT_TERM-v1'.Run("Run")
);
//Check that the current year term was set successfully
If(
    IsError(gblYRTR_request),
    //OnFailure
    Set(
        gblErrorNotes_OnStart,
        gblErrorNotes_OnStart & " Could not retrieve the current year term"
    );
    Set(
        gblIsError_OnStart,
        true
    );,
	//OnSuccess
    Set(
        gblYRTR, gblYRTR_request
    );
    Set(
        gblYRTR_request, Blank()
    );
);
Here is the code used in the offending label's "Text" property to display the "Year Term" data:
If(
    ctxHelpToggle,
    "Current Semester",
    If(
        IsBlankOrError(gblYRTR.SHORT_DESC),
        "No Year Term Found",
        Proper(gblYRTR.SHORT_DESC)
    )
)
I there are no errors or warnings with either of these code snippets as indicated by the App Checker.

I have checked, double checked, and re-published the app multiple times to guarantee that they are working off the exact same version:
 
Does anyone have any ideas or advice about what may be going on and how to fix it?
Categories:
I have the same question (0)
  • Suggested answer
    SH-29081529-0 Profile Picture
    4 on at
    I was somehow able to resolve this issue by adding some operations around and within the code on the App OnStart operation.
    //Check that the current year term was set successfully
    Set(gblKeepAlive, true);
    If(
        IsError(gblYRTR_request),
        //OnFailure
        Set(
            gblErrorNotes_OnStart,
            gblErrorNotes_OnStart & " Could not retrieve the current year term"
        );
        Set(
            gblIsError_OnStart,
            true
        );
        Set(gblKeepAlive, true),
    	//OnSuccess
        Set(
            gblYRTR, gblYRTR_request
        );
        Set(
            gblYRTR_request, Blank()
        );
        Set(gblKeepAlive, true);
    );
    I do not understand why this works but it is a solution for now.

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard