- In this walkthrough we will learn Step-By-Step how to use the Advanced Search in order to retrieve entity records, related to a parent entity with a MANY-TO-ONE relationship.
- Let's say we created a N:1 relationship between Account to Campaign: a campaign applies to many accounts. We want to search accounts, some of its fields, and its related campaigns.
- Let's say we want to retrieve all the Accounts named "Sean":go to the Accounts workplace, and select "ADVANCED SEARCH":

- Select the NEW view:

- On the FIELDS combo, select the field Account Name:

- Select from the combo the CONTAINS option:

- Finally, our condition will be : "Account Name contains 'Sean'":

- Press RESULTS to see whether the query returns what we need:

The results are correct. But let's say we don't need the "Primary contact" column, so we delete it: - Select "Edit Columns" to remove the field:

- Select the column and click on "Remove":

- Now we want of course to add another column: we'll learn how to add a column that relates to another entity: click "Add Columns":

- This Campaign Name field holds the dependency N:1 between Account to Campaign. Add the column:

- Go to "Advanced Find" and press RESULTS again to see what we get:

Besides the "Main Phone" field, we got the "CAmpaign Name", which is the related entity in the N:1 relationship. Clicking it will lead us to the corresponding Campaign for this Account
That's all...
Happy programming!!!!
כתב: כרמל שוורצמן
No comments:
Post a Comment