Rules editor: Difference between revisions

Jump to navigation Jump to search
Line 508: Line 508:


==== Relationship ====
==== Relationship ====
* The relationship target, in the case of questionnaires, gets the object from where you entered the questionnaire in the user interface. For example, if you open a questionnaire from an Account form, the relation target is then the Account record.
 
Relationship allows you to determine from where a particular form/view/questionnaire opens. However, a relationship has to exist between the two records. Depending on whether the lookup relationship is on the original record or the destination record, either source or target is populated.
 
For example:
* If you display an account and go to its primary contact through a lookup on the account form, on the contact form, the relationship.source will be populated with the account reference (account.primarycontactid).
* If you display an account and go to one of its related contacts, on the contact form, the relationship.target will be contact.accountid.
* If you open a record directly from the home screen or from an unrelated list, no relationship will be defined.
 
In the case of questionnaires:
* The relationship target gets the object from where you entered the questionnaire in the user interface. For example, if you open a questionnaire from an Account form, the relation target is then the Account record.
* The relationship source is the record from the form that you opened from the questionnaire. However, opening forms of other records from a questionnaire is very rare.
* The relationship source is the record from the form that you opened from the questionnaire. However, opening forms of other records from a questionnaire is very rare.
The relationship sourceUIElement is the tab name of the associated view from which you open a related record.


=== Operations ===
=== Operations ===

Navigation menu