Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Action settings for the on Blueprint provision trigger

Action settings for the on Blueprint provision trigger

These fields display when you create a policy action for a policy that is triggered on Blueprint provision.

Table 1. Settings for the 'Execute a script' action
Field Description
Action Script Category Select a category.
Action Script Select a script.
Table 2. Settings for the 'Property override' action
Field Description
Property Name Specify the user-specified attribute (property) value to override.
Value
Enter a value that overrides the value in the Property name field. You can use a static value, an expression, or both. Expressions can do the following:
  • Set form data values using definition expressions. For example: ${parameter.formData.CatalogAttributeType}
  • Assign user data values using definition expressions. For example: ${parameter.userData.userId}

    For example, the following value can set the stack name to Stack_Bob.Smith@company.com: Stack_${parameter.userData.userId}

  • Set stack or table values using runtime expressions.

    For example: $(ci.sn_cmp _ip_pool[subnet=${parameter.formData.Subnet Id}]) takes the subnet from the IP Pools table.

  • Associate a random number with a field using static expressions. Use: ${randomNumber}
Is Script Based Select the check box to display the Script text box and specify the script.
Table 3. Settings for the 'Abort process' action
Field Description
Message Enter a message that appears when the process aborts.
You can use the following example script snippet to override a stack name. The function( formData) section of the script allows you to modify the values for fields on the form. In this case, the name MyStack is used for the stack name.
customScript : function( formData){
               // Manipulation of form parameter is only supported here. Change in any other attributes
               // will be ignored
               // data available for manipulation are
               // Form Data - Ex. StackName can be accessed through formData.StackName
               // formData.StackName = "MyStack";
               // User Data  - Ex. User Id can be accessed through this.parameters.userData
               // if(this.parameter.userData.userId == 'servicenowuserId')
                  formData.StackName = "MyStack";
                  return formData;
                },

Changes to site functionality will be made starting around 6am on January 21st (Pacific Time) and lasting approximately 6 hours.  The site may be intermittently unavailable.