---
schema_version: "1"
id: c206ba28e952fdd17ecd4fe3dafef1769e9f25f81ba675f421ab153fd040e021
title: Create Asset Warranty 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_warranty_subflow.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.ca_aeo_set_up_the_create_asset_warranty_subflow.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6b2180ea2f4fdd32fda810ba53af673654b50a933a07798bf2e46d340c45bd04
description: The Create Asset Warranty Records flow creates Asset Warranty records for a given asset, and optionally its child assets, for an Asset Registration Event. It goes through the asset hierarchy up to a configurable depth and finds the applicable Product Warranty Terms, checks for existing warranties to avoid duplicates, and creates the new records in bulk in a single operation.
products:
  - Industry Solutions
  - Cross Cloud
release: "264"
---
# Create Asset Warranty Records Flow

The Create Asset Warranty Records flow creates Asset Warranty records for a given asset, and optionally its child assets, for an Asset Registration Event. It goes through the asset hierarchy up to a configurable depth and finds the applicable Product Warranty Terms, checks for existing warranties to avoid duplicates, and creates the new records in bulk in a single operation.

Flow Inputs and Outputs

  
| Variable | Direction | Description |
| --- | --- | --- |
| Asset ID | Input | The ID of the asset record. |
| Product ID | Input | The product ID of the root asset record. |
| Warranty Start Date | Input | The warranty start date of the asset warranty. |
| Warranty Hierarchy Level | Input | The level of asset hierarchy to create asset warranties. |
| Create Records | Output | The names of records successfully created. |
| Failed Records | Output | The names of records that failed to be created. |
| Asset Warranty Failure Reason | Output | The error message when record creation fails, either due to missing fields or due to presence of duplicate records. |

The Asset Warranty records are created only when all of the following are true:

- The Asset is linked to a Product. This is used to find applicable Product Warranty Terms. If the asset has no product, no matching terms will be found and no asset warranties will be created.
- The Product has associated Product Warranty Terms. If no terms exist, no asset warranties will be created.
- An existing Asset Warranty shouldn’t have the same asset, warranty term, and start date together. Duplicate asset warranties won’t be created.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-connected_assets-264-0-0-production-enus/eb4c6dd7-4aef-4e97-9c56-46929d5b166e/images/icon_note.png)

Note The root asset has hierarchy level 1 and a maximum of 100 asset warranties are created for an event. If an asset has more than a 100 child assets within the hierarchy level, only the first 100 records are processed.