Button to download Excel Sheet With the fields on the form auto populated.

Community Alums
Not applicable

I have 5 fields with values on the form and I need a button on case form , when I click that button , an excel sheet with the fields name and values should be generated and get downloaded.

Fields name should be bold.

Fields value should be normal text.

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Community Alums 

you can download the excel/csv but unless user saves the record you won't see the updated value in downloaded file

You cannot customize bold etc

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Community Alums
Not applicable

Hi Ankur , yes button will only be visible once the record is updated .

Can you help me with the script i need to write to make the button work to download the excel sheet.

we can assume 2 fields filled by user and should be auto-populated when excel is downloaded.

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @Community Alums ,

Please find the below link which will help you to create the button. in the below link the button is created on list banner instead of that you can select the form option and check the code.

https://www.servicenow.com/community/developer-forum/adding-export-to-excel-button-on-report/m-p/1918954

 

Thank you,

Omkar

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.