Newer Version Available

This content describes an older version of this product. View Latest

CreateAssetOrderEvent

Notifies subscribers that the process started by the /actions/standard/createOrUpdateAssetFromOrder request is complete. If the process is successful, use this event to learn about the new assets. If the request isn't successful, use this event to learn about the errors and how to fix them. This object is available in API version 55.0 and later.

Supported Calls

describeSObjects()

Supported Subscribers

Subscriber Supported?
Apex Triggers Yes
Flows Yes
Processes Yes
Pub/Sub API Yes
Streaming API (CometD) Yes

Subscription Channel

/event/CreateAssetOrderEvent

Event Delivery Allocation Enforced

No

Special Access Rules

This object is available if Subscription Management is installed in your org. Users must have Read access on this event to receive or view event notifications.

Fields

Field Details
AssetDetails
Type
CreateAssetOrderDtlEvent
Properties
Nillable
Description
A list of AssetDetail records created as a result of a successful createOrUpdateAssetFromOrder request.
Each AssetDetail contains an order item ID, asset ID, and IsSuccess flag. If the request failed, the AssetDetail also contains an error code and error message.
CorrelationIdentifier
Type
string
Properties
Nillable
Description
Reserved for future use.
EventUuid
Type
string
Properties
Nillable
Description
A universally unique identifier (UUID) that identifies a platform event message.
ReplayId
Type
string
Properties
Nillable
Description
Represents an ID value that is populated by the system and refers to the position of the event in the event stream. Replay ID values aren’t guaranteed to be contiguous for consecutive events. A subscriber can store a replay ID value and use it on resubscription to retrieve missed events that are within the retention window.
RequestIdentifier
Type
string
Properties
Nillable
Description
The unique ID returned in the /createOrUpdateAssetFromOrder response. Use this ID to identify the event for a specific request.

Example

A user successfully runs a createOrUpdateAssetFromOrder request on an order with two order items. The published createAssetOrderEvent contains the following information.
  • RequestId: 0001
  • AssetDetail
    • OrderItemId: 802XX0000000001
    • AssetId: 02iXX000000001
    • IsSuccess: True
  • AssetDetail
    • OrderItemId: 802XX0000000001
    • AssetId: 02iXX000000002
    • IsSuccess: True

Example

A user runs a createOrUpdateAssetFromOrder request on an order with two order items, but doesn't have Create access on assets. The request fails, and the published createAssetOrderEvent contains the following information.
  • RequestId: 0002
  • AssetDetail
    • OrderItemId: 802XX0000000001
    • IsSuccess: False
    • ErrorCode: INSUFFICIENT_ACCESS
    • ErrorMessage: User doesn’t have Create Access to asset.
  • AssetDetail
    • OrderItemId: 802XX0000000001
    • IsSuccess: False
    • ErrorCode: INSUFFICIENT_ACCESS
    • ErrorMessage: User doesn’t have Create Access to asset.