A bug is assigned to a developer stating that when an address contains data in the Address Line 2 field, the FlexCard display adds an additional line, causing formatting issues.
How should the developer handle this in a DataRaptor without changing the underlying data structures?
The issue is that the FlexCard is displaying an extra line whenever Address Line 2 has data. The requirement is to fix the display formatting without changing the underlying data model.
In OmniStudio DataRaptors, you can add formula fields during data extraction.
By concatenating Address Line 1 + Address Line 2 into a single formatted field inside the Extract DataRaptor, you can pass the clean, properly formatted address to the FlexCard.
This approach ensures:
No changes to underlying data structure.
No need to create new fields.
Controlled formatting at the data transformation layer.
Why not the others?
A . Add a Load DataRaptor to write the data into one new custom field.
This changes the data model by writing into a new custom field, which the requirement prohibits.
B . Replace the Extract DataRaptor with a Transform DataRaptor.
Transform DataRaptors are typically used for complex JSON-to-JSON mapping or orchestration, not needed here since a simple formula in the Extract DataRaptor suffices.
D . Create a new Turbo Extract DataRaptor to trim the Address data in both fields.
Turbo Extracts are used for high-performance, single-object extracts but do not support formulas or transformations.
They wouldn't solve the concatenation/formatting issue.
Salesforce OmniStudio Reference:
OmniStudio DataRaptor Guide:
''Use formulas in Extract DataRaptors to concatenate or transform fields before passing data to a UI component.''
''Turbo Extract DataRaptors don't support formulas or transformations.''
Catalina
3 days agoLera
8 days agoRhea
13 days agoMonte
18 days agoGerman
23 days ago