Skip to Content

SAP Gateway download Excel via Parameter &$format=xlsx -> Change Filename

Aug 03, 2017 at 12:28 PM


avatar image

Hey guys,

following Scenario: I want to download an Excel File through OData (SAP Gateway) via Parameter &$format=xlsx. How can I change the filename?

Refering to the documenation there is a field in the response that is responsible for the filename.

"The HTTP response header content-disposition is filled to suggest as file name the entity set name to the client:

content-disposition: attachment; filename=Employees.xlsx


But I am not able to set this field in my GET_ENTITYSET Method. Any ideas?

Thanks and regards


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers