UI Action to open Dialog Box for a file upload

Stephen Broida1
Tera Contributor

For an application I am working on, I am trying to figure out how to get the following to work:

 

1.  Create a new List Banner Button UI Action.

2.  Upon clicking said button, a pop-up File Dialog Box appears asking the user to select an Excel spreadsheet (.xlsx format) from their system.

3.  Choosing a spreadsheet will then upload the file to the application, and the application will then automatically parse through the spreadsheet and convert each row into new records for the table that the UI Action is attached to.

 

So far, I've created the UI Action Button successfully, and am ready to add script to it to try and implement this, but am not sure how.  Ideally, I want it to function the same way as if someone pressed the button for attaching files to an email.

 

I've found information in the community already on how to make a UI Action produce a dialog box at the following threads:

 

https://www.servicenow.com/community/developer-forum/help-with-ui-action-and-pop-up-dialog/m-p/21549...

https://www.servicenow.com/community/itsm-forum/ui-action-pop-up-modal-window/m-p/581585

https://www.servicenow.com/community/developer-forum/ui-action-to-open-a-dialog-page/m-p/1846037

 

But my question, in specific, is what do I do to make the dialog box that pops up a File Dialog Box?

0 REPLIES 0