---
schema_version: "1"
id: d5d086d6bf302dd6b0391c4201d4644b5cfa7188fde7afe78d7f25be22389d62
title: Create Asset Milestone Records Flow
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/ca_aeo_set_up_the_create_asset_milestone_subflow.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.ca_aeo_set_up_the_create_asset_milestone_subflow.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 701f6e81f5366ca0d0d822c3ebf26a1400b6776cd9e9504a474a01534c1bb230
description: The Create Asset Milestone Records flow creates an Asset Milestone record for a given asset in an Asset Registration Event. Before creating, it checks whether a milestone with the same name, date, type, stage, and usage type already exists for the asset. If a duplicate record exists, no new record is created and the failure is recorded.
products:
  - Industry Solutions
  - Cross Cloud
release: "264"
---
# Create Asset Milestone Records Flow

The Create Asset Milestone Records flow creates an Asset Milestone record for a given asset in an Asset Registration Event. Before creating, it checks whether a milestone with the same name, date, type, stage, and usage type already exists for the asset. If a duplicate record exists, no new record is created and the failure is recorded.

Flow Inputs and Outputs

  
| Variable | Direction | Description |
| --- | --- | --- |
| Asset ID | Input | The ID of the asset record. |
| Milestone Name | Input | The name for the new asset milestone record. |
| Milestone Date | Input | The date of the asset milestone. |
| Milestone Stage | Input | The stage of the asset milestone, such as, Active. |
| Milestone Type | Input | The type of the asset milestone, such as, Order Received. |
| Milestone Usage Type | Input | The usage type of the asset milestone, such as, Automotive. |
| Created Records | Output | The names of records successfully created. |
| Failed Records | Output | The names of records that failed to be created. |
| Milestone Failure Reason | Output | The error message when record creation fails, either due to missing fields or due to presence of duplicate records. |