Example - Add new field for Salesforce in Search
Learn how to add a new field in SBC recipe.
To add a new Salesforce field in Search:
- Log into your Salesforce account.
- Navigate to SFDC > Search Before Create > 2-Process.
- Select the SFDC | PROC | SBC - Search Process for Account - Reltio and Salesforce recipe
- Select Step 2.
- In the right pane, under the List item schema section, select Add field.
- Add details of the new Salesforce field, and make it optional.
- Select Step 11.
- In the right pane, under the Fields to retrieve section, add the new Salesforce account.
- Select Step 15.
- In the right pane, in the New account field, select the optional field you created.
- Select Step 17.
- Add mapping from Salesforce to Reltio as shown above.
- Select Step 23.
- In the right pane, under the Output fields section, select Add field and add the new Salesforce account field.
- In the right pane, under the Code section, add this code:
let accountNewField = obj.attributes.NewOrganizationField && obj.attributes.NewOrganizationField.length > 0 ? obj.attributes.NewOrganizationField[0].value : "";
- Additionally, add this code:
if(accountNewField!== undefined && accountNewField !== null) { salesforceObject.NewOrganizationField = accountNewField; }
- Select Step 24.
- In the New account field, add the newly created Salesforce field.