Issue in resolving a SRAPI endpoint to a CSV file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 07:16 AM
Hello Experts,
We have a requirement where user should be able to directly download selected records from the list view of a table into a CSV file via a UI button on the list banner. This is implemented via a Scripted REST API(GET). On clicking the UI button, the invoked script include makes the API call and returns the endpoint URL. This returned URL is then opened in a new window via the UI action and the CSV file gets downloaded.
We are passing the selected sys_ids in the API parameter. This is working fine as long as the selected record count does not exceed 20. When it does, the URL is shortened (sysparm_tiny) and the desired file is not generated. If anyone has come across resolving such an issue please guide on how to overcome this limitation.