Publish your custom integration application on the ServiceNow Store to make it available for others to use.

Before you begin

Role required: admin

About this task

You must complete these steps so that your custom integration works correctly when other users download it from the ServiceNow Store.

Procedure

  1. Create a fix script in your custom integration application.
    When a new integration profile is created using your application, the subflows and connection alias you created are automatically linked to the profile through this fix script.
    1. Navigate to System Applications > Studio.
    2. Select your custom integration application.
    3. On the Welcome to Studio page, click + Create New.
      The Create Application File dialog box opens.
    4. On the dialog box, search for and select Fix Script.
    5. Click Create.
    6. On the Fix Script form, fill in the following fields.
    7. Enter the following script in the Script field.
      For the subflows and connection alias, replace the example ids with the real ids. You can find the id in the URL for each item.
      new global.CustomIntegrationProfileUtils().createCustomIntegration({
      	name: 'Name', // choose a name for the integration
      	downloadSubscriptionSubflow: '3a23e189a1400010fa9bed1383c83d38', //replace example id
      	updateActivitySubflow: '77a66d23e5500010fa9bc9581d0c0f47', //replace example id
      	reclamationSubflow: 'e62b672e39400010fa9b4845e477fe02', //replace example id
      	connectionAlias: '629ad2bfdb1893005963ff041d961971' //replace example id
      });
      Note: The update activity and reclamation subflows are not required. If you do not include a subflow to update activity, the integration does not get user activity unless your download subscription subflow includes user activity. If you do not include a reclamation subflow, the integration cannot deactivate SaaS user subscriptions.
    8. Click Submit.
  2. Create a cross scope privilege record.
    This record allows the fix script you created to access the CustomIntegrationProfileUtils() script include.
    1. Navigate to System Applications > Application Cross-Scope Access.
    2. Click New.
    3. On the form, fill in the fields.
    4. Click Submit.

What to do next

Before you publish your custom integration application on the ServiceNow Store, make sure that your actions and subflows are active, published, and saved in your application.