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 / HTTP request is receiv...
Power Automate
Unanswered

HTTP request is received actions

(2) ShareShare
ReportReport
Posted on by 726
 
I am using the HTTP request is received within power automate so that when a user clicks the 'sign in' button i have on a page its adds the users to a list, basically logging users, I have also got a sign out button that does the same thing, i was hoping to add at the end of the automation that the site page closes/logs off is this possible? 
 
As part of the HTTP request, i have a response that just says thank you, how do i make it so this screen closes or doesn't appear, as i need them to stay on the original screen
 
 
 
Categories:
I have the same question (0)
  • Kannan_n Profile Picture
    511 Super User 2024 Season 1 on at
    Hi May be you Can use Redirection. Here is the step's I got from Online. 
     

    1. Modify the HTTP Response

    Instead of displaying a "thank you" message, you can send an empty HTTP response with a 204 No Content status code. This will prevent the response screen from showing up.

    2. Use JavaScript to Control the Page

    To automatically close or redirect the page after the user clicks the button, you can use JavaScript.

    Here’s a step-by-step guide:

    Step 1: Modify Power Automate HTTP Response

    1. Add an HTTP response action to the end of your flow.

    2. Configure it to send an empty response with a 204 No Content status code.

    Step 2: Use JavaScript to Manage the User Interface

    1. On your web page with the 'sign in' and 'sign out' buttons, add JavaScript to handle the button clicks.

    2. In the JavaScript, call the Power Automate flow using the HTTP request.

    3. Use JavaScript to handle the response and control the page (e.g., closing the page or redirecting back to the original screen).

    Explanation

    • JavaScript Code: This code sets up two functions, signIn and signOut, which send HTTP POST requests to your Power Automate flow URLs for sign in and sign out.

    • Handling the Response: If the response has a status code of 204, the page will either close or redirect to the original URL.

    This way, users will stay on the original screen or be redirected back to it, without seeing the intermediate response screen.

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 339 Super User 2026 Season 1

#1
trice602 Profile Picture

trice602 339 Super User 2026 Season 1

#3
David_MA Profile Picture

David_MA 270 Super User 2026 Season 1

Last 30 days Overall leaderboard