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 / Power automate and D36...
Power Automate
Unanswered

Power automate and D365 HR Personalisations

(0) ShareShare
ReportReport
Posted on by 8

Hi,

 

I am trying to automate the loading of personalisations for D365 HR and I am coming across a few issues where controls have dynamic id's which I think is common in D365. I am slowly getting past this. However, I can't seem to click one button on one screen:

 

wolrabs_0-1629275178574.png

I have tried the following:

  1.  Web recorded what I need to happen and seen the button click. When I move this recorded 'click' event to my flow it stops working
    • This is the selector: 
      • html > body > div:eq(1) > div > div:eq(6) > div:eq(1) > div > div:eq(3) > div:eq(1) > div:eq(0) > div:eq(1) > div:eq(0) > div:eq(0) > div:eq(1) > button
  2.  Added the button using the 'Add UI Element'
    • This is the selector:
      • button[Id="FormRunConfigurationImport_2_DataFileUploadBrowseButton"]
  3.  Changed the selector to use Jquery and the name attribute ( this doesn't seem to be dynamic ) for this button 
    • This is the selector:
      • [name='DataFileUploadBrowseButton']
  4.  Switched between click link and click button with all of the above
  5.  Run javascript:
    • $("[name='DataFileUploadBrowseButton']").click();

Nothing seems to work as I am expecting to see a file open dialog appear.

 

Any thoughts or help would be appreciated.

 

Sean

 

I have the same question (0)
  • NikosMoutzou Profile Picture
    Microsoft Employee on at

    Hello @wolrabs !

     

    Is this a File picker button (open windows explorer for selecting a file)?

     

    If yes, you should use the 'Click on UI element in window' action of Power Automate Desktop and capture the UI element (the button) through the action.

     

    If this suggestion does not work, please provide additional information as the error that is being generated in Power Automate Desktop during execution.

  • WolrabS Profile Picture
    8 on at

    Hi @NikosMoutzou 

     

    Thanks for your reply.

    The Browse button is a web button that opens a windows file picker dialog.

    There is actually no error, the dialog just doesn't open. Using options 1,2 and 3 above, the button turns yellow but nothing happens.

     

    Thanks

     

    Sean

  • NikosMoutzou Profile Picture
    Microsoft Employee on at

    Have you tried to use the action I suggested in my previous comment? For a file picker button, you should use an action of the UI automation module although it is a button in a web page.

  • WolrabS Profile Picture
    8 on at

    I have just tried it and it works! Thanks! 

     

    Why is that? Is it because it is interacting with the System?

     

    Thanks

     

    Sean

  • WolrabS Profile Picture
    8 on at

    Hi, 

     

    This has stopped working again and I think it is because D365 changes Id's.

    The selector is:

     

    > pane[Class="BrowserRootView"][Name="Personalisation -- Human Resources - Microsoft Edge"] > pane[Class="NonClientView"][Name="Microsoft Edge"] > pane[Class="GlassBrowserFrameView"] > pane[Class="BrowserView"] > pane[Class="View"]:eq(2) > pane[Class="View"] > pane[Class="View"] > document > group[Class="CSS3Flex ContainersWithBorderRadius ltr"] > group[Class="mainContainer applicationShell-contentRegion"][Id="mainContainer"] > pane[Class="dialog-container layout-root-scope active-form"][Id="form_742_0"] > group[Class="Minimal FileUpload minimal"][Id="FormRunConfigurationImport_6_DataFileUpload"] > button[Class="button dynamicsButton"][Id="FormRunConfigurationImport_6_DataFileUploadBrowseButton"]

     

    But because it is D365, the ID's change so this stops working so I have changed the selector to:

     

    > pane[Class="BrowserRootView"][Name="Personalisation -- Human Resources - Microsoft Edge"] > pane[Class="NonClientView"][Name="Microsoft Edge"] > pane[Class="GlassBrowserFrameView"] > pane[Class="BrowserView"] > pane[Class="View"]:eq(2) > pane[Class="View"] > pane[Class="View"] > document > group[Class="CSS3Flex ContainersWithBorderRadius ltr"] > group[Class="mainContainer applicationShell-contentRegion"][Id="mainContainer"] > pane[Class="dialog-container layout-root-scope active-form"][Id*="form_"] > group[Class="Minimal FileUpload minimal"][Id*="DataFileUpload"] > button[Class="button dynamicsButton"][Id*="DataFileUploadBrowseButton"]

     

    Thanks

     

    sean

    to try and use partial matching of the Id, but it still doesn't work.

     

     

  • WolrabS Profile Picture
    8 on at

    Hi @NikosMoutzou ,

     

    Would have any more suggestions for this?

     

    Thanks for your help

     

    Sean

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard