Context Data
Easily Sync Salesforce Data (related to the Thing Object) to the IoT Cloud and Edge Gateway. This Context data can be used in Calculations and Alert Conditions (by using the context group - e.g. context.someField == 'Gold'), to enhance and provide flexibility in your Thing-Type Specifications.
All Context fields are synced on a schedule, or can be manually synced for special cases and troubleshooting.

Context Data Settings
Global Context Fields
Global Context Fields are synced for all Things, regardless of their Thing-Type.
-
Select New.
-
In the new row, select Global Settings from the dropdown.
-
Define the reader friendly Label for the field.
-
Define the Field Name to use in calculations and alerts.
Name Restrictions
- Must start with a letter.
- Can only contain letters, numbers, and
_. - Must not contain any spaces.
-
Select the Object field to associate with this Context field.
Thing-Type Context Fields
Thing-Type Context Fields are only synced for Things which match the Thing-Type specified.
Steps for Thing-Type Context Fields are the same as for Global Context fields, except Step 2: select the desired Thing-Type from the drop down in place of Global Settings.
Context Synchronization
The sync schedule for the Context fields is managed in the lower section of the Context Data settings page.
- If an existing schedule has already been configured, select Disable prior to configuring the new schedule.
- In the Schedule drop-down menu, select the desired frequency.
- Enter the appropriate value in the At field.
- Hourly: Define how many minutes past the hour to run the sync.
- Daily: Define the time of day.
- Weekly: Define the day of the week and time of day.
- Monthly: Define which day of the month and the time of day.
- Select Enable.
FYI
Thechron expression is shown in the Status field.
Remove Context Field
- Select the link under the Custom Metadata Record column.
- Select the Delete button toward the top of the metadata record.