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 Automate / How can I put elements...
Power Automate
Answered

How can I put elements from web page in desktop flow manually?

(0) ShareShare
ReportReport
Posted on by 20

Hi All.. 

 

I'd like to put the below id value in my desktop flow manually.

I've already tried to record so that enter date as text but if failed and the error msg showed that cannot find that element. 

So I turned on develop mode on web browser and then checked the id value of that element but don't know which action should be used. Please help me for this. 

 

adelevance1_1-1670232266118.png

 

 

 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

     

    Use Run javascript on webpage action.

     

    document.getElementById("Put_Id_here") = "2022-11-01";

     

    Depending on how the code of the webpage is written, you might have to either press a tab or a enter or click a button for the dates to reflect. Sometimes nothing is needed to be done, only entering values in the textbox.

  • adelevance1 Profile Picture
    20 on at

    Hi VJR, 

    Always Thank you for your quick response. 

     

    I'm the beginner of PAD so have a little confusing about javascript. 

    As attached screenshot, there is sdate and edate input type and also there is id value for each as I highlighted below.

    adelevance1_0-1670240353212.png

     

    In this case, do I just drag and drop the action 'Run javascript function on web page' and then put the code like below? 

    function ExecuteScript() {document.getElementById("dp1670239429245.hasDatepicker") = "2022-11-01"; }

     

    Already I did so but it didn't work properly. Do you have any comments for this? 

     

    Thank you in advance! 🙂

     

     

  • VJR Profile Picture
    7,635 on at

    As per the screenshot, the Ids are as below

    VJR_0-1670240718404.png

     

    dp1670239429245.hasDatepicker

     

    So drag and drop the action 'Run javascript function on web page' and then add code as below

     

    document.getElementById("dp1670239429245") = "2022-11-01"

     

     

  • adelevance1 Profile Picture
    20 on at

    Hi VJR,

     

    as I re-checekd, It was confirmed that the id value changes every time the browser is opened. Is there any other way in this case?

  • Verified answer
    VJR Profile Picture
    7,635 on at

    If the id changes then make use of the name

     

    document.getElementsByName("sdate")[0].value = "2022-11-01";
    document.getElementsByName("edate")[0].value = "2022-11-10";

     

     

  • adelevance1 Profile Picture
    20 on at

    Perfect! 

    Thank you VJR! 

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 482

#2
11manish Profile Picture

11manish 280

#3
David_MA Profile Picture

David_MA 268 Super User 2026 Season 1

Last 30 days Overall leaderboard