I am new to Pega Robotics, and I am trying to develop an RDA that would prompt the user to select an excel file. All I need is the file path returned so that I can open and process the file.
I tried the OpenFileDialog, but it doesn’t seem to work.
@KhaledA7 The OpenFileDialog is what you need. Here is an example. If you are still having problems, post some screenshots of your automations and I can see if there is anything that sticks out.
@ThomasSasnett The OpenFileDialog does require a Windows form thread to call the Show method though. If you don’t have any Windows Forms in your solution, you can add one and set its Opacity to 100% (making it visible, yet invisible to the user) and its ShowInTaskBar to false. In your automation where you want to show the dialog, you’d call PerformClick on a button on the form whose Click event shows the dialog.