Loading
Connected Assets
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Update Records For Asset Registration Event

          Update Records For Asset Registration Event

          The Update Records for Asset Registration Event flow automatically processes incoming Asset Registration Events in your org. Use the flow to automatically update fields of Asset Milestone, Entitlement and Asset Warranty records based on the information passed through the AssetRegistrationUpdateRecordDetails__stdctx context definition. This flow identifies the relevant Asset record through the matching Asset ID or Serial Number and uses the associated context data to update associated records.

          Required Editions

          Available in: Lightning Experience
          Available in: Automotive Cloud and Manufacturing Cloud. View edition availability.
          User Permissions Needed
          To use the orchestration:

          Design Actionable Event Orchestration Processes

          AND

          Manage Flow

          To manage the Asset Warranty, Asset Milestone, and Entitlement records: Read, Create access on Asset Warranty, Asset Milestone, and Entitlement.
          1. Modify the expression set template.
            1. From the App Launcher, find and select Expression Set Templates.
            2. Click Update Records for Asset Registration Event from the list view.
            3. Click Save As and select New Event Orchestration Builder Version.
            4. Change the name and save your changes.
            5. Change the output variables and their corresponding formula, if necessary.
              The Persist Data for a Context Definition action in the Update Records for Asset Registration flow requires at least one attribute in the context definition to change before processing event data. In this expression set template, warranty, milestone, and entitlement date fields are manually set to the current date, enabling the action to detect updates and modify context tags accordingly.
            6. Enter the label and API name.
            7. Click Save.
            8. Modify the elements and resources as required.
            9. Activate the flow.
          2. Clone and activate the orchestration template.
            1. From the App Launcher, find and select Actionable Event Orchestration.
            2. Select the Update Records for Asset Registration record.
            3. Click Clone.
            4. For Execution Procedure Name, select the cloned and activated version of the Update Records for Asset Registration flow.
            5. For Event Type, select Update Asset Registration Records.
            6. For Context Definition name, make sure you select AssetRegistrationUpdateRecordDetails.
              You can either use the context definition as is or use a new version of this definition.
            7. For Context Mapping name, make sure you select AssetRgstrUpdateRecordsMap.
              You can either use the context mapping as is or use a new version of this mapping.
            8. Change other details as required.
            9. Save your changes.
            10. To activate the orchestration, select Active.
          3. Refresh the decision table.
            1. From Setup, enter Decision in the Quick Find box, then select Decision Tables.
            2. Click Filter and Match Actionable Event Orchestrations from the list view.
            3. Click Refresh.

          Flow Inputs and Outputs

          Variable Direction Description
          Context ID Input

          The ID of the context definition record associated with the incoming Asset Registration Event.

          Failure Message Output

          The descriptive error message for when any step in the flow fails. If the flow succeeds, this variable is empty. Use this in downstream processes to detect and handle failures.

              Description
          Context ID Input

          The ID of the context definition record associated with the incoming Asset Registration Event.

          Failure Message Output

          The descriptive error message for when any step in the flow fails. If the flow succeeds, this variable is empty. Use this in downstream processes to detect and handle failures.

          Payload Field Reference

          Field Required Description
          Source System Identifier Yes The unique identifier for the external system sending the event. For connected assets, it’s the asset ID and for connected vehicles, it’s the vehicle identification number (VIN).
          Type Yes The developer name of the actionable event type. It must match the event type associated with the Update Records for Asset Registration actionable event orchestration record.
          Subtype No The developer name of the actionable event subtype. It must match the event subtype associated with the Update Records for Asset Registration actionable event orchestration record.
          Event Data Yes The structured event data, provided as a JSON-encoded string. This serialized string contains the attributes required to hydrate the context definition instance, which is then passed to the execution procedure based on the configured input mapping.

          Event Data Field Reference

          Field Required Description
          Asset Yes The list of asset objects included in the event.
          Asset Unique Identifier Yes The asset record ID or serial number, used by the flow to look up the corresponding asset record.
          Asset Business Object Type Yes The object type for the orchestration engine. Must be “Asset”.
          Asset Entitlement No The related entitlement records, including the Id, businessObjectType, EntitlementName, and EntitlementEndDate.
          Asset Asset Milestone No The related asset milestone records, including id, businessObjectType, and MilestoneName.
          Asset Asset Warranty No The related asset warranty records including id, businessObjectType, and WarrantyEndDate.

          Review the structural example for the payload template.

          {
            "sourceSystemIdentifier": "<your-system-identifier>",
            "type": "Update_Asset_Registration_Records",
            "subtype": "<aeo-event-sub-type>",
            "eventData": "<stringified-JSON-of-the-structure-below>"
          }

          Review this structural example for the event data template.

          {
            "Asset": [
              {
                "UniqueIdentifier": "<asset-salesforce-id-or-serial-number>",
                "businessObjectType": "Asset",
                "Entitlement": [
                  {
                    "id": "<entitlement-record-id>",
                    "businessObjectType": "Entitlement",
                    "EntitlementName": "<entitlement-name>",
                    "EntitlementEndDate": "<YYYY-MM-DD>"
                  }
                ],
                "AssetMilestone": [
                  {
                    "id": "<asset-milestone-record-id>",
                    "businessObjectType": "AssetMilestone",
                    "MilestoneName": "<milestone-name>"
                  }
                ],
                "AssetWarranty": [
                  {
                    "id": "<asset-warranty-record-id>",
                    "businessObjectType": "AssetWarranty",
                    "WarrantyEndDate": "<YYYY-MM-DD>"
                  }
                ]
              }
            ]
          }
           
          Loading
          Salesforce Help | Article