Pass Custom Tracking IDs in Checkout Links
Overview
As a Salesforce admin working with Limio for Salesforce, you can now inject custom metadata directly into the order payload using the new R****ecord Ids to add to the order tracking object property in the Initiate Checkout flow component. This allows you to:
Pass Salesforce record IDs such as Opportunity or Quote IDs into Limio.
Enable downstream integrations or analytics.
Track orders in SF more effectively by attaching reference markers to the resulting platform event.
What is Record Ids to add to the order tracking object?
The Record Ids to add to the order tracking object property enables you to append custom tracking data to the order payload during checkout.
How to configure customTracking in a Salesforce Flow
customTracking in a Salesforce FlowOpen your flow: Open the relevant Flow in Flow Builder where the Initiate Checkout component is used. This is often inside a screen called “Generate Checkout Link”.
Add a formula resource: Create a Formula Resource that outputs a JSON string. For example:
"{\"opportunityId\": \"" & {!Opportunity.Id} & "\", \"userId\": \"" & {!$User.Id} & "\"}"
💡 This step ensures dynamic merge fields are properly included in the final payload.
Set the
**customTracking**property:Navigate to the Initiate Checkout component.
In the customTracking property, assign the formula created above.
Save and activate the flow: After testing, activate the updated flow to make the changes live.
What happens at checkout?
The JSON is parsed and injected into the
trackingfield of the order payload.The data is visible in Limio Commerce as part of the order object.
This metadata is also published in the platform event, which can be consumed by external systems.
Example: tracking Opportunity ID
Here is a basic example that tracks an Opportunity ID and the agent submitting the flow:
"{\"opportunityId\": \"" & {!recordId} & "\", \"submittedBy\": \"" & {!$User.Email} & "\"}"
This would result in an order payload like:
{ "tracking": { "opportunityId": "0068X00001A123B", "submittedBy": "[email protected]" } }
Retrieving tracking data from the platform event
When the Salesforce V3 plugin is enabled to publish platform events, Limio will emit a platform event for each processed order. This event—published by Limio Commerce—can be subscribed to in Salesforce to trigger post-checkout automation, such as updating the related Opportunity or Quote record.
The event published by Limio is of type i42as__OrderEvent__c. Within the flow triggered by this event, you can access the i42as__LimioOrder__c field. This field contains a full JSON representation of the order payload—including the tracking object you defined earlier in your flow.
You can then parse this JSON string in your platform event-triggered flow to extract relevant tracking values, such as:
opportunityIdquoteIdsubmittedBy
These values can be used to locate and update Salesforce records as needed. For example, you might update the related Opportunity's stage once the Limio order is marked as complete.
This approach ensures a seamless integration loop—from initiating the checkout with context, to processing the response and reflecting updates in Salesforce.
Error handling
If the JSON string is malformed, the component will show an error in the flow UI.
Ensure that:
All keys and values are enclosed in double quotes.
Quotes inside the formula are escaped using
\".Merge fields are correctly referenced and evaluated.
Related articles
Last updated
Was this helpful?

