When to Use
- Store mappings when creating records in external systems
- Look up external IDs before updating records in connected applications
- Check if a record already exists in an external system before creating
- Maintain sync state between your application and enterprise systems
- Clean up mappings when records are deleted
DataRef entities must be created first via More > Data Refs before using this node. Each entity stores mappings specific to your workflow context.
Actions
Create Ref
Create Ref
Creates a single mapping between an internal record ID and an external system ID.
Select the DataRef entity to store the mapping. Entities are created via More > Data Refs.
Your internal system’s record identifier. Supports dynamic variables. Example:
{{user.internal_id}} or user_12345The external system’s record identifier. Supports dynamic variables. Example:
{{salesforce_contact.Id}} or 003xx000002ABCCreate Bulk Refs
Create Bulk Refs
Get Ref from record ID
Get Ref from record ID
Get Ref from external ID
Get Ref from external ID
Delete Ref by record ID
Delete Ref by record ID
Output
Create Ref / Create Bulk Refs
Create Ref / Create Bulk Refs
Get Ref (found)
Get Ref (found)
Ref Not Found
Ref Not Found
Delete Ref
Delete Ref
Error Response
Error Response
Adding to Your Workflow
Create a DataRef entity
Before using this node, create a DataRef entity via More > Data Refs. This defines the storage location for your mappings.
Add the Data Refs Node
In the workflow editor, click Add Node and select Data Refs from the Utility Nodes section.
Select an action
Choose the action that matches your use case:
- Create Ref to store a new mapping
- Create Bulk Refs to store multiple mappings at once
- Get Ref from record ID to find external IDs
- Get Ref from external ID to find internal IDs
- Delete Ref by record ID to remove mappings
Configure parameters
Select the DataRef entity and provide the required IDs based on your selected action.
Examples
Create SAP Vendor Mapping
Create SAP Vendor Mapping
Store the mapping when creating a new vendor in SAP.Workflow Context: After creating a vendor in SAP, store the mapping between your internal vendor ID and the SAP vendor number.Action: Create Ref
Output:
| Field | Value |
|---|---|
| Name | sap_vendor_mapping |
| Record ID | {{internal_vendor.id}} |
| External ID | {{sap_create_vendor.Supplier}} |
Check if NetSuite Customer Exists
Check if NetSuite Customer Exists
Before creating a customer in NetSuite, check if a mapping already exists to avoid duplicates.Workflow Context: Use a Rule Node after this to branch based on whether the ref was found.Action: Get Ref from record ID
Output (found):Output (not found):
| Field | Value |
|---|---|
| Name | netsuite_customer_mapping |
| Record ID | {{webhook.customer_id}} |
Bulk Create Tipalti Payee Mappings
Bulk Create Tipalti Payee Mappings
After batch-creating payees in Tipalti, store all mappings in one operation.Workflow Context: Use with Loop Node output to create mappings for all processed records.Action: Create Bulk Refs
Refs Input:Output:
| Field | Value |
|---|---|
| Name | tipalti_payee_mapping |
| Refs | {{loop_create_payees.results}} |
Look Up Internal ID from SAP Webhook
Look Up Internal ID from SAP Webhook
When receiving a webhook from SAP, find the corresponding internal record ID.Workflow Context: SAP sends a webhook with a vendor number. Find your internal vendor ID to process the update.Action: Get Ref from external ID
Output:
| Field | Value |
|---|---|
| Name | sap_vendor_mapping |
| External ID | {{sap_webhook.vendor_number}} |
Delete Mapping When Record is Removed
Delete Mapping When Record is Removed
Clean up the mapping when a vendor is deleted from your system.Workflow Context: After deleting a vendor internally, remove the external mapping to keep data clean.Action: Delete Ref by record ID
Output:
| Field | Value |
|---|---|
| Name | sap_vendor_mapping |
| Record ID | {{deleted_vendor.id}} |
Troubleshooting
DataRef Not Found
DataRef Not Found
| Problem | Solution |
|---|---|
| ”Dataref with name X not found” | Verify the DataRef entity exists under More > Data Refs. Check for typos in the name. |
| Entity not appearing in dropdown | Create the DataRef entity first via More > Data Refs before using it in a workflow. |
Ref Not Found
Ref Not Found
| Problem | Solution |
|---|---|
| ”Ref not found” returned | This is expected when no mapping exists. Use a Rule Node to handle this case and create the record. |
| Looking up wrong ID type | Ensure you’re using the correct action. Use “Get Ref from record ID” for internal IDs and “Get Ref from external ID” for external system IDs. |
Bulk Creation Issues
Bulk Creation Issues
| Problem | Solution |
|---|---|
| Bulk refs not creating | Verify the Refs array format. Each object must have record_id and external_id keys. |
| Partial creation | Check for duplicate record IDs in the array. Each record ID should be unique within a batch. |
Mapping Conflicts
Mapping Conflicts
| Problem | Solution |
|---|---|
| Duplicate mappings | Use “Get Ref from record ID” before creating to check if a mapping already exists. |
| Wrong external ID returned | Verify you’re querying the correct DataRef entity. Different entities store separate mapping sets. |
What’s Next
- Rule Node to add conditional logic based on ref lookup results
- Loop Node to process bulk refs from array data
- Tables Node for more complex data storage needs
- HTTP Node to sync data with external systems after ref lookup