Skip to main content

Notifications

Power Automate - Using Connectors
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?

 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard

Featured topics