
Announcements
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.
To automatically close or redirect the page after the user clicks the button, you can use JavaScript.
Here’s a step-by-step guide:
Add an HTTP response action to the end of your flow.
Configure it to send an empty response with a 204 No Content status code.
On your web page with the 'sign in' and 'sign out' buttons, add JavaScript to handle the button clicks.
In the JavaScript, call the Power Automate flow using the HTTP request.
Use JavaScript to handle the response and control the page (e.g., closing the page or redirecting back to the original screen).
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.