Use a Formula Field to Render a Similar Accounts Field
Create a multiline text formula field to show the similar accounts you get from the model. Here's how you create the field:
- Enter an active sandbox.
- Navigate to .
- On the Fields page, click .
- Select Formula and click OK.
To learn more about the formula fields, read the Formula Fields topic in the Configuring Applications Using Application Composer guide.
- On the Create Formula Field page, enter a Display Label. Enter the same name but without spaces, in the Name field.
- Select Display Type as Multiline Text Area.
The formula field will appear as a multiline text area to display the similar accounts.
- Click Next.
- On the Configure Expression page, enter the formula value in the following
format:
For example,adf.util.InvokeSalesMLQueryAPI("<Prediction Model Usecase Code>","<Primary Key Field Name>",<Primary Field Value>)
adf.util.invokeSalesMLSimilarRecordsQueryAPI("CX_SIMILAR_ACCOUNTS","partyid",PartyId)
. - Click Submit.
You can now add the similar account field to an object page.