Remote Entity (DataHub) – pass SAP language (sap-language / Accept-Language)?
0
Hi all,We are using Remote Entities (DataHub) to consume SAP S/4 OData services. Queries are auto-generated, e.g.:HTTP /odata/vX/service/Entity?$filter=Id eq '12345'ProblemWe need to control the language of SAP responses.In other integrations we use:sap-language=EN (URL), orAccept-Language: EN (header)But with Remote Entities:Query is fully managed by MendixNo way to modify URL or headersHeader would work but not recommended and often ignored by SAPSo this is not possible:HTTP ...?$filter=Id eq '12345'&sap-language=ENQuestionHas anyone solved this?Any way to pass language dynamically (URL or header)?Recommended pattern (e.g. filter by Language field, duplicate services)?ContextRequirement: language must follow at least per env configuratbilty not be static (e.g. Spain default EN).
asked
Luca De Simoni
1 answers
0
In the consumed OData service that the remote entities are part of you can use a headers microflow (headers only) or a configuration microflow (headers + other configuration) to add dynamic headers to all outgoing requests.