Create or Update Asset From Order Action

Create an asset for each order item in the specified order. New assets are created for a new order. Modify existing assets for change order requests, such as a renewal or a cancellation.

When the custom product name for an order line item has a value, the asset name is set to custom product name.

This action is available in API version 60.0 and later.

Special Access Rules 

You need the Assetize Order permission set to use this invocable action.

Supported REST HTTP Methods 

URI: /services/data/v68.0/actions/standard/createOrUpdateAssetFromOrder

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is a placeholder for your OAuth access token.

Inputs 

InputTypeDescription
orderIdstringRequired. ID of the order.

Outputs 

OutputTypeDescription
requestIdstringID of the request to create an asset.

Example 

POST

This sample request is for the Create or Update Asset From Order action.

1{
2  "inputs": [
3    {
4      "orderId": "801DE000000oJfAYAU"
5    }
6  ]
7}

This sample response is for the Create or Update Asset From Order action.

1[
2    {
3        "actionName": "createOrUpdateAssetFromOrder",
4        "errors": null,
5        "isSuccess": true,
6        "outputValues": {
7            "requestId": "3b89392d-6987-40d9-9190-d18fdb5cb849"
8        }
9    }
10]