WFM Context: Difference between revisions

Jump to navigation Jump to search
 
Line 11: Line 11:


== Data Loaders ==
== Data Loaders ==
Data loaders will inherit the following global variables which you can use to filter out relevant records with:<syntaxhighlight lang="javascript">
Data loaders will inherit the following global variables which you can use to filter out relevant records with:<syntaxhighlight lang="text">
events,
events => a list of loaded events
fetchInfo,
fetchInfo => an object with start/end dates defining the loaded period
contextRecordId,
contextRecordId => the id of the context record
contactUserId,
contactUserId => the id of the context record
userId,
userId => the id of the context record
contextObjectName,  
contextObjectName, => the API name of the contextual record
contextRecord,
contextRecord => the entire context record with all first-level fields
contextUser
contextUser =>the entire context record with all first-level fields
</syntaxhighlight>
</syntaxhighlight>


Navigation menu