Exporting EXCEL, CSV file in PORTAL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2024 09:22 PM
Good afternoon! Is anyone aware of where to locate the configuration for exporting cases in list view on the portal? It seems that customer managers at a certain company can successfully export to PDF, but they are encountering a "User Not Authorized" error when trying to export to Excel or CSV. we have already checked roles, Script Includes, and ACLs. Any guidance would be greatly appreciated. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 11:41 PM
Hello @jabaya
You can check the client controller script. This contains the export Types. Refer the screenshot below
So in the HTML
If you see in HTML the href is
/{{data.table}}_list.do?{{::t.value}}&sysparm_query={{data.exportQueryEncoded}}&sysparm_view={{data.view}}&sysparm_fields={{data.fields}}
Adding the demo data to this href will convert it to a file link.
{"data":
{
"table": "incident",
"view": "default",
"o": "opened_at",
"d": "desc",
"filter": "activeEQtrue",
"p": 1,
"fields": "number,short_description"
}
}
/incident_list.do?EXCEL&sysparm_query=activeEQtrue&sysparm_view=default&sysparm_fields=number,short_description
Test this in your instance where the URL will be something like this:
https://dev123456.service-now.com/incident_list.do?EXCEL&sysparm_query=activeEQtrue&sysparm_view=default&sysparm_fields=number,short_description
This is for Excel file, similarly you can add 'PDF' and 'CSV'. Just replace the EXCEL in url with the desired format.
Hope this helps!
"If you found my answer helpful, please like and mark it as the "accepted solution". It helps others find the solution more easily and supports the community!"
Thank You
Juhi Poddar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 04:54 AM
Hi Juhi,
For me Export option is working the only issue the export file shows field exported are (
Number | Task type | Short description | State | Priority |
)
I need to also export created and updated fields in this export option. but don't know where i need to update ( server script or Client script or both )so get this working.
Regards,
b
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 05:09 AM
Hello @Bijender
Since a specific view is being used, only the columns included in that view will be exported. To ensure the necessary data is included, please add the required columns to the specified view. Only columns present in the selected view will be part of the export.
Hope this helps!
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"
Thank You
Juhi Poddar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 07:49 AM
Hi Juhi,
View is showing created and updated , its just when export the file, does not contain these field.
Regards,
b
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 04:00 PM
Hello @Bijender
Add the sys_created_on and sys_updated_on fields to the demo data. This will ensure these fields are included in the export URL.
The URL should look like this with the created and updated fields added:
https://dev123456.service-now.com/incident_list.do?EXCEL&sysparm_query=activeEQtrue&sysparm_view=default&sysparm_fields=number,short_description,sys_created_on,sys_updated_on
Hope this helps!
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"
Thank You
Juhi Poddar