Announcements
I am extracting information from a web with a javascript function. I use a getelementbyid but always get an empty string
function ExecuteScript(){ document.getElementById('formHeaderTitle_0').value = %Proyecto%}
Thanks
Hi @PP-Lover
Since you are getting/reading the value from the webpage into a variable, the "getElementById" should be on the right hand side of the = sign.
Here is an example:
function ExecuteScript() { var x = document.getElementById("country"); return(x); }
Then you put a "Display Message" on x to check its contents.
This work perfect.
Thanks a lot
hi, i try to get get all the data from <h3> elements with the class "lsow-title" in javascript in power automate,the code run in webpage console can get all the data, but why when i run in powerautomate it can't work? It can only get [Object]
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 243 Super User 2026 Season 2
David_MA 211 Super User 2026 Season 2
Mohsin Ali 190