Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Create post-provision operations

Create post-provision tasks for newly provisioned catalog items by defining subflows, scripts, CAPI calls, or resource operations. For efficiency, set up a post-provision operation, eliminating the need for manual invocation. This approach enhances time management, ensuring seamless execution of desired actions on the catalog item after resource provisioning.

Before you begin

Role required: sn_cmp.cloud_service_designer

About this task

You can create post-provision operations only for catalog items that are based on templates.

Procedure

  1. In the Cloud Admin Portal, navigate to Design > Cloud Catalog Items.

  2. Open the catalog item, click the Post Provisioning Operation tab, and then click New.

  3. On the form, fill in the fields.

FieldDescription
Step Type

Post-provision operation. Based on the post-operation you select, additional fields appear.- CAPI: - CAPI Provider - CAPI Interface - CAPI Method - CAPI Version - InstanceScript:

Script: Enter the name of the script.

  • Resource:
  • Resource Interface
  • Interface Operation
  • Flow: Select a subflow. All active subflows in the instance are listed.

Note: For more information, see Subflows.

OrderOrder of post-provision operations. Enter the order \(in numerals\) in which you want the post-provision operation to be invoked. For example, if you enter the value 2 for CAPI and the value 3 for InstanceScript, then CAPI is invoked first and then the InstanceScript gets invoked. If you do not enter any value in this field, the system automatically enters a value in increments of 20.
EnabledOption for enabling the post-provision operation you want invoked.
  1. Click Submit.

    Parameters for the post-provision operation are automatically created as operation attributes on the Manage Attributes form.

  2. To set attribute values for a post-provision operation:

    1. Click the Manage Attributes related link.

      The Manage Attributes form opens.

    2. Select the post-provision operation to update.

      All attributes for the selected operation appear in the Operations list. You can either create expression mappings (shown in the Mapping column) for an attribute or can you generate variables for an attribute. See Manage operation attributes for more information.

Image omitted: manage-attributes-post-provision.png
Post-provisioning attributes
3.  On the Operation Attributes form, edit the values in the **Mapping** field as needed.

4.  To set a value and not show the field to the cloud user, set **Generate Variable** to false.

    For VMware post-provision operations, you can set the following attribute values:
Attribute name<Value field> to set in the Mapping expression
NodeCredential$(capiResolver.NodeCredentialResolver#nodeCredentialId=<Credential SysID>)Note: You must create the credentials manually to be able to specify the sys_id in the expression
NodeAddress$\(Script:CMPVMUtils.getReachableIp\[arg=$\(Stack.items\[``\].attributes\[sys\_id\]\)\]\)
ScriptExpression$\{CloudScript.scripts.`

sndocs is an independent community mirror and is not affiliated with or endorsed by ServiceNow.

ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are associated.

© 2026 ServiceNow, Inc. All rights reserved.

Documentation content is redistributed under the Apache License 2.0 from the ServiceNowDocs repository.