Setup Platform Events and Flows

To set up an Order Event flow, it will depend on whether you use , an add-on for order management in Salesforce, or not.

Limio for Salesforce comes with a pre-made Salesforce Lightning Flow to map your Salesforce Platform Events to your Salesforce data. Otherwise, with a few extra steps, you can create a Lightning Flow from scratch.

If you are not familiar with Salesforce Platform Events and Salesforce Lightning Flow, we recommend you do the following:

Below you'll find a step-by-step guide for both methods.

If you have the Limio for Salesforce managed package installed:

  1. Access the Setup Menu

    • Go to Setup in Salesforce.

  2. Navigate to Flows

    • In the Quick Find search bar, type "Flows" and select the Flows page from the search results.

  3. Locate the Flow

    • Find the flow named Listen to Limio OrderEvent__e.

    Screenshot 2025-01-16 at 15.26.18.png
  4. Review the Transform Element

    • Within the Listen to Limio OrderEvent__e flow, you will find a transform element named Map values from event to Object record.

    • Open this transform element to review its configuration:

      • Source Data: Set to i42as__OrderEvent__e, with a list of its fields displayed.

      • Target Data: Set to the Asset SObject (or any other object like Opportunity), also showing a list of its fields.

      • If you click on a field in the Source Data, you can map it directly to the corresponding field in the Target Data (Asset SObject).5. Activate the Flow *

        • By default, this flow is inactive.

        • To activate the flow after you configured the target object and fields mapping, click Activate in the top-right corner of the screen.

If you don't have Limio for Salesforce:

If you don’t use Limio for Salesforce, you can still set up a Platform Event-Triggered Flow to process events and create records in Salesforce. This requires creating your own custom Platform Event and configuring the flow to handle the data accordingly. Additionally, you’ll need to coordinate with Limio to ensure system publishes events to your Salesforce org.

Follow these general steps to implement the solution:

  1. Create a Platform Event in Salesforce

  2. Create a Platform Event-Triggered Flow

  3. Reach Out to Limio Support

Steps to create Platform Event in Salesforce:

  1. Access the Setup Menu

    • Go to Setup in Salesforce.

  2. Navigate to Platform Events

    • In the Quick Find search bar, type "Platform Events" and select the Platform Events page from the search results.

  3. Create a New Platform Event

    • Click the New Platform Event button.

    • Fill in the standard fields.

    • Click Save to create the Platform Event.

  4. Add Custom Fields to the Platform Event

    • After saving, you’ll be redirected to the Platform Event’s detail page.

    • Click New Field to add custom fields to the Platform Event.

      • Choose the field type (e.g., Text, Number, Email, etc.).

      • Define the Field Label, Field Name, and any necessary field attributes (e.g., length, required status).

      • Click Save after creating each custom field.

Steps to create a Platform Event-Triggered Flow from scratch:

  1. Access the Setup Menu

    • Go to Setup in Salesforce.

  2. Navigate to Flows

    • In the Quick Find search bar, type "Flows" and select the Flows page from the search results.

  3. Create a New Flow

    • Click the New Flow button in the top-right corner of the Flows page.

  4. Select the Flow Type

    • In the Flow Type selection screen, choose Platform Event-Triggered Flow and click Create.

  5. Choose the Platform Event

    • In the Start element: a. Click Edit (pencil icon) next to the Platform Event option. b. Select the desired Platform Event (e.g., Express_Event__e created above or any custom Platform Event available in your org). c. Click Done.

  6. Add a Transform Element

    • Configure the transform element as follows: a. Source Data: Select the Platform Event fields. b. Target Data: Select Data Type > Record and Object > Account (or any other target object like Opportunity). c. Map the fields from the Platform Event to the corresponding fields in the object. For example:

      1. Platform Event Field (e.g., Name)Account Field (e.g., Name)

      2. Platform Event Field (e.g., Email)Account Field (e.g., Email__c)

  7. Add a Create Records Element

    • Add the Create Records element to the canvas.

    • Configure the element as follows: a. Label: Give the element a name (e.g., Create Account Record). b. Record: Select the Account object. c.Create a Record from These Values: Use the values mapped from the Platform Event in the transform step.

  8. Save the Flow

    • Click Save and provide a name for your flow.

  9. Activate the Flow

    • Once saved, click Activate in the top-right corner of the screen to make the flow active and ready to handle incoming platform events.

Related articles:

Last updated

Was this helpful?