Salesforce Fact #805 | $EachItem in Transform element in flow

So we have the Transform(Beta) element in the flow. Using this we transform the data from a record or collection and store it in another record or apex-defined variable.

If we see the formula syntax, for collection type it uses the [$EachItem] merge field syntax for iterating over each item in the collection.

In this example, we have a get records element which fetches the account records and this is used in the Transform element to get the account names.

Reference: https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_transform.htm&type=5

Attached is the screenshot.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow