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 / why isnt this redirect...
Power Apps
Answered

why isnt this redirect code working correctly?

(0) ShareShare
ReportReport
Posted on by 83
On App start:

Set(hasAccess,false);
If('PowerApp->SendanHTTPrequesttoSharePoint'.Run(EncodeUrl(User().Email)).hasaccess, Set(hasAccess,true));
If(hasAccess,Navigate(Screen1),Navigate(ErrorScreen));

the method for sendhttprequesttosharepoint works fine when I see the previous runs it returns true, however the redirect always redirects to the error screen. Am I missing something?

Categories:
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @LuisTorres,

     

    Could you please share the response action of your flow and the output result? What is the type of output?

     

    I just made a test on my side, and can reproduce your issue if the output type is Yes/No. The output cannot be passed into PowerApps even if the flow runs successfully. I will submit this issue to Microsoft Product Team.

    Snipaste_2020-05-19_14-27-25.png

    As an alternative workaround, please try to change the Output to Text type, then in the app, modify the code as follows:

    Set(hasAccess,false);
    If('PowerApp->SendanHTTPrequesttoSharePoint'.Run(EncodeUrl(User().Email)).hasaccess="true", Set(hasAccess,true));
    If(hasAccess,Navigate(Screen1),Navigate(ErrorScreen));

     Snipaste_2020-05-19_14-31-10.png

    Hope this helps.

    Sik

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 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard