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 / Get variables from JS ...
Power Apps
Unanswered

Get variables from JS within powerapps

(0) ShareShare
ReportReport
Posted on by 131

Hello,

that's a pretty hard to explain situation I would like to solve.

 

I'll try to sum it up correctly.

What we do :

1) we have created an e-learning module using Articulate Storyline.

2) we export it as an html file so that we can store it and have people use it on a web browser.

3) we are excuting a JavaScript at the end of thge module to collect variables (name, place, date, answers, results etc... for each candidate) by sending an HTTP request to an URL. 

4) for the moment we use a Power Automate trigger collect those informations and store it into an Excel Online sheet.

It works.

 

What we would like to do :  publish this tool within a public sharepoint site using a PowerApps webpart but without using PowerAutomate.

We previously found out we can embed the html file /module in an app (iframe), it works.

BUT : is there a way to execute the Java Script, then make the PowerApp receive the HTTP request and collect the variables values to write it in a form and save it in a SP list or Excel sheet ?

 

Said differently, can PowerApps understand the values sent by the embedded iFrame module in it ?

 

Thanks a lot for your help.

 

 Romain 

 

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @RSygroves ,

     

    Unfortunately you cannot use JS in PowerApps that you have embed in your html file. 

    There are 2 methods assuming you are using Model-Driven App.

    1. Without Canvas App

    => If all data is stored on a form or calculated wuth JS, you can trigger HTTP request directly that can invoke your Flow.

    Alternate way is, to change or update a field (acting as Flag) which you can use to trigger Power Automate Flow.

     

    2. With Canvas App 

    => Considering that all data is stored on the form record then you can embed you App in that and then save to excel by triggering power automate flow.

     

    These are 2 simple methods that you can do.

     

    Note: Canvas PowerApps cannot work with any context of JS from IFrame.

     

    Hope this helps

  • RSygroves Profile Picture
    131 on at

    @Ethan_R Thank you for your answer.

     

    Actually, we're already using a Power Automate Flow instead of a PowerApps.

    Our Storyline Html Module contains a Javascript that sends an HTTP request that is treated by the Power Automate trigger.

     

    We wanted to be able to do the same process without Power automate and in a powerapp, by putting the Html module as an Iframe in it, but I understand the app wouldn't be able to understand the script and store the variables in a form.

    I guess I also understand why.

     

    Best regards.

     

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard