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 / Problem with Power Red...
Power Automate
Unanswered

Problem with Power Redirecting after submission

(0) ShareShare
ReportReport
Posted on by 16

Hey Everyone,
I am facing a situation :
I have created a power apps which works as a survey form and on start of the app I create a collection and Add column from my SharePoint Questions and AddColumns of my own:
OnStart Code:

Refresh(SPSurveryQues3);
ClearCollect(
    ResponsesColl,
    AddColumns(
        ShowColumns(
            SPSurveryQues3,
            "Title",
            "Question",
            "QuestionRefNo",
            "Domain",
            "ProgType",
            "Index"
           
        ),
        "QResponse",
        "a",
        "QUser",
        User().Email,
        "Data",
        ""
           
    )
);
Set(
    varCurrentIndex,
    1
);
Set(
    varTotalRecords,
    CountRows(ResponsesColl)
);

My Gallery Items Code is:

LookUp(ResponsesColl, Index = varCurrentIndex)
zabi_1-1686612641858.png

 

 

This is the code for every button on select:

Patch(
    ResponsesColl,
    LookUp(
        ResponsesColl,
        QuestionRefNo = ThisItem.QuestionRefNo
    ),
    {QResponse: Button2_6.Text}
);
If(
    varCurrentIndex = varTotalRecords,
    Navigate(Screen3)
);
If
(
    varCurrentIndex <= varTotalRecords,
    Set(
        varCurrentIndex,
        varCurrentIndex + 1
    )
);
When the last Question button is pressed and answered the program will redirect to he submit page:
zabi_0-1686612515899.png

 


 

 



UpdateContext({
    MaxResponseID: Max(SPSurveyAns2, 'SurveyID (ResponseID)')
});


ForAll(
    ResponsesColl,
    Patch(
        SPSurveyAns2,
        Defaults(SPSurveyAns2),
        {
            Title: Question,
            QuestionRefNo: QuestionRefNo,
            ProgType: ProgType,
            Response: QResponse,
            'SurveyID (ResponseID)': MaxResponseID + 1
        }
    )
);
Clear(ResponsesColl);
Navigate(Screen2);
Refresh(SPSurveryQues3);
Notify("Your Response was submitted successfully! You are amazing");

AT THIS STAGE AFTER CLICKING ON SUBMIT I EXPECT THE APP TO RENDER SCREEN 2 BACK FOR ME BUT THE SCREEN GOES WHITE:
zabi_2-1686612009845.png

 


Then I need to refresh the chrome page to get my app screen 2 Again.
I there any way I could automate that refresh?

 
Categories:
I have the same question (0)

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
Expiscornovus Profile Picture

Expiscornovus 201 Most Valuable Professional

#2
David_MA Profile Picture

David_MA 174 Super User 2025 Season 2

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard