Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce AP-211 Exam - Topic 1 Question 16 Discussion

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?
C) Modify the Extract DataRaptor to concatenate the address fields by using a formula.
A) Add a Load DataRaptor to write the data into one new custom field.
B) Replace the Extract DataRaptor with a Transform DataRaptor to convert the data as needed.
D) Create a new Turbo Extract DataRaptor to trim the Address data in both fields.

Salesforce AP-211 Exam - Topic 1 Question 16 Discussion

Actual exam question for Salesforce's AP-211 exam
Question #: 16
Topic #: 1
[All AP-211 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: C

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.''


Contribute your Thoughts:

0/2000 characters
Catalina
3 days ago
I think option C makes the most sense for formatting.
upvoted 0 times
...
Lera
8 days ago
I’m leaning towards option B, but I’m not confident. I just hope we don’t have to change the underlying data structures like the question states!
upvoted 0 times
...
Rhea
13 days ago
I practiced a similar question where we had to manipulate address data. I feel like creating a new Turbo Extract DataRaptor could be overkill for this issue.
upvoted 0 times
...
Monte
18 days ago
I’m not entirely sure, but I think concatenating the address fields might help with the formatting issue. Is that what option C is suggesting?
upvoted 0 times
...
German
23 days ago
I remember we discussed how Transform DataRaptors can be useful for modifying data without altering the source. Could that be the right choice here?
upvoted 0 times
...

Save Cancel