Create a Context in Salesforce IoT Explorer Edition
- From Setup, enter IoT in the Quick Find box, then selectContexts.
- Click New Context.
- Enter a context name.
- To distinguish this context from others, enter a description and clickCreate. The description appears on the context detail page.
- Click Edit, and add event data and reference data.
- Click Add Event Data, and select a platform event from the list.A preview of the selected event fields is displayed.
- Click Next.
- Select a key field, and click Apply.The key associates each incoming event with an orchestration instance.
- If you want to add more platform events, repeat the steps.
- (Optional) To add a Salesforce object, click Add Reference Data, and select an object from the list. Associating a reference object in the context lets you combine Salesforce data with event data.
- Click Next.
- Select a key field, and click Apply.The key associates each Salesforce record with an orchestration instance. Key values must match across event and reference data.The key field can be one of the following:A Salesforce ID fieldA text or number field with the Unique attribute enabled
- A Salesforce ID field
- A text or number field with the Unique attribute enabled
- Click Save, and then click Done to exit.