Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Get the Translated Values of Multiple Survey Fields in One or More Languages
After survey fields are translated into one or more languages, you can view the
translated values of multiple survey fields in the translated languages. This resource is
available in REST API versions 48.0 and later.
Syntax
URI: /services/data/vXX.X/localizedvalue/records/get
Formats: JSON
HTTP methods: POST
Request body JSON example
1[
2 {
3 "developerName": "Flow.Flow.MyFlow.1.Choice.Choice_1_Master.InputLabel",
4 "language": "en_US"
5 },
6 {
7 "developerName": "Flow.Flow.MyFlow.1.Choice.Choice_1_Master.InputLabel",
8 "language": "zh_CN"
9 }
10]Request parameters
| Parameter | Description |
|---|---|
| developerName | Required. Developer name of the flow field. |
| language | Required. Language into which the flow field was translated. |
Response parameters
| Parameter | Description |
|---|---|
| createdBy | ID of the user who translated the flow field. |
| createdDate | Date and time the flow field was translated. |
| developerName | Developer name of the flow field. |
| language | Language into which the flow field was translated. |
| value | Translated value of the flow field. |
| isOutofDate | Indicates if the flow field is out of date. |
Example
1[
2 {
3 "createdBy": "005xxx",
4 "createdDate": "2018-09-14T00:10:30Z",
5 "developerName": "Flow.Flow.MyFlow.1.Choice.Choice_1_Master.InputLabel",
6 "language": "en_US",
7 "value": "China",
8 "isOutOfDate": true
9 },
10 {
11 "createdBy": "005xxx",
12 "createdDate": "2018-09-14T00:10:30Z",
13 "developerName": "Flow.Flow.MyFlow.1.Choice.Choice_1_Master.InputLabel",
14 "language": "zh_CN",
15 "value": "中國",
16 "isOutOfDate": true
17 }
18]