I have a power pages app that integrate local sign in. I also have an iframe embedded of copilot studio bot. Now, inside my bot I want to check whether the user already sign in or not. Can I send the user identity variables from power pages to copilot studio?
try window.postMessage() to send data from Power Pages to Copilot Studio iframe
Power Pages: After user signs in (or when page loads), use JavaScript to fetch their info (e.g., from Liquid variables or Dataverse) and send it to the bot iframe.
Copilot Studio Bot (inside iframe): Listen for the postMessage event and use a Power FX expression in a custom canvas or a custom event in Bot Framework Composer to set variables accordingly.
pls let me know if you need more details.
thanks
-Sai
Was this reply helpful?YesNo
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.