Fetch entity API call is not returning CVL field values for all languages - only the EN language is returned.
Is this a bug that requires a fix? How can we get the API calls to return different languages values which are defined within a CVL.
Note: Originally commented in Community by @Viktor Bergqvist , included here for convenience:
...
Hi Saroj,
You can fetch specific languages by including the header--header 'Accept-Language': 'de' //Provide fieldname, category in German language provided. Example when fetching EntitySummary and FieldsSummary data when usinghttps://api-prod1a-euw.productmarketingcloud.com/swagger/index.html#/Entity/FetchDatayou can read more about the other headers here.https://community.inriver.com/hc/en-us/articles/360023000354-How-do-I-set-up-the-REST-API
Or to get all relevant CVL values for the entity type you can
1. Fetch the CVL fieldstypes for the entity and locate the CVLIdhttps://api-prod1a-euw.productmarketingcloud.com/swagger/index.html#/Model/GetAllFieldTypesForEntityType
2. Fetch all CVL values based on the CVLIdhttps://api-prod1a-euw.productmarketingcloud.com//swagger/index.html#/Model/GetAllCvlValues
But with that said, it would be beneficial as you state to also be able to get the CVL values for more than the specific language that you get today in the Fetch entity API.
Note: Originally commented in Community by @Viktor Bergqvist , included here for convenience:
...
Hi Saroj,
You can fetch specific languages by including the header
--header 'Accept-Language': 'de' //Provide fieldname, category in German language provided. Example when fetching EntitySummary and FieldsSummary data when using
https://api-prod1a-euw.productmarketingcloud.com/swagger/index.html#/Entity/FetchData
you can read more about the other headers here.
https://community.inriver.com/hc/en-us/articles/360023000354-How-do-I-set-up-the-REST-API
Or to get all relevant CVL values for the entity type you can
1. Fetch the CVL fieldstypes for the entity and locate the CVLId
https://api-prod1a-euw.productmarketingcloud.com/swagger/index.html#/Model/GetAllFieldTypesForEntityType
2. Fetch all CVL values based on the CVLId
https://api-prod1a-euw.productmarketingcloud.com//swagger/index.html#/Model/GetAllCvlValues
But with that said, it would be beneficial as you state to also be able to get the CVL values for more than the specific language that you get today in the Fetch entity API.
...