Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Shares module contains sharing the different options available for sharing out your data integrationfrom one application to another

To access these features, go to Perspectium > Perspectium Core > Shares in your ServiceNow instance. 

UI Expand
titleDynamic Share
Divbox
stylebackground: white

With dynamic shares, you can send records out of your ServiceNow instance as they are created, updated, and/or deleted. Dynamic shares can be configured per ServiceNow table. This setup can be used to control the format, conditions, and destination of data that will be dynamic shared out of your ServiceNow instance. 

To access dynamic shares, go to Perspectium > Perspectium Core > Shares. Then, click Dynamic Share.

Explore the sections below for instructions on how to create dynamic shares and reset rules around dynamic shares. 

UI Expand
titleCreate a ServiceNow dynamic share using Business Rules
Divbox
stylebackground: white

Creating a dynamic share for a table will allow you to sync records for that table with the records in another application instance.

These instructions are for creating a dynamic share using Business Rules. Instructions for creating a dynamic share using Flow are in the next section.

(info) NOTEBecause this approach uses business rules to trigger sharing records out, if a user is updating records with setWorkflow(false) to turn off executing business rules (including async business rules), records will not be shared.  In this case, consider using alternative approaches like Scheduled Sync Up, Scheduled Bulk Shares or Flow.

Prerequisites:

Instructions:

In your ServiceNow instance, go to Perspectium > Perspectium Core > Shares.
Select Dynamic Share.
Select Create New Dynamic Share.
Select Business Rule and click Submit
(info) NOTE: This is not editable - if you wish change the share type of this dynamic share once you save, you will have to delete the dynamic share and create a new one.
Enter a name of your new dynamic share in the Name field.
In the Table dropdown, find and select the table which includes the data that you want to dynamic share out of your ServiceNow instance. 
Check the Active box to activate your dynamic share.
In the Encryption Method dropdown to select a method to encrypt the data. 
Cipher options include:

Encryption Method

Dynamic shared data will...

TripleDESbe encrypted with Triple DES.AES128

be encrypted with AES-128.

AES256

be encrypted with AES-256.

(info) NOTE: To ensure AES-256 encryption for your data, you will need to create an encryption and decryption key with at least 32 characters in the PSP Properties module.

Base64 Encode Onlyhave Base64 encoding only.Unencrypted

not be encrypted.

Scroll to the Trigger Conditions tab and check as many of the following boxes as you wish:

Action

Record data will be shared out of your ServiceNow instance when...

Create

new records are created. 

<table_name>.insert

Update

record data is changed.

<table_name>.update

Delete

records are deleted.

<table_name>.delete

Alternatively, you can use Update or Insert under Runtime Settings
Image Removed
When Update or Insert is selected, Create and Update actions will be grayed out and not selectable. Furthermore, when the messages are pushed out to Perspectium Cloud Server, the name field will contain:

<table_name>.bulk

This will instruct the consumer or subscriber to implement an update (by sys_id) or insert action when the sys_id is

In the following sections, you'll find more context on each type of share, instructions on setting them up, and additional features for using shares.

Image Added

not found.
In the Additional Settings tab, click the Search icon next to the Target queue field and in the Queues popup, select the shared queue that you want to dynamic share your record data to.
  • Click Submit to save your changes.
  • UI Expand
    titleCreate a ServiceNow dynamic share using Flow
    Divbox
    stylebackground: white

    Choosing Flow Designer for dynamic shares makes use of ServiceNow’s Flow Designer to create a flow that will send records out of your ServiceNow instance as they are created and/or updated.

    Because business rules may not always trigger when records are created and/or updated (due to changes done utilizing a script where setWorkflow is set to false to disable running business rules), this option is an alternative to ensure these changes are captured and shared out of your instance. 

    For more information, see ServiceNow Flow Designer and setWorkflow.

    Warning

    Starting with ServiceNow's Paris release, setWorkflow applies to Flow Designers to prevent flows from executing. To continue using setWorkflow without stopping your Flow Designers in Paris and newer versions, see How do I stop setWorkflow from stopping my flow designers from running?

    (info) NOTE:

    • Because of how flows and business rules are created in ServiceNow, dynamic shares created with Flow Designer cannot be changed to a dynamic share created with a business rule (and vice versa).  You will have to delete the dynamic share and create a new one if you want to change the dynamic share from one approach to the other.
    • Additionally, because of the many tables used by ServiceNow to build the Flow Designer engine, records will be inserted/updated in the following tables when a flow is created/updated and the first time each flow is triggered:

    sys_hub_action_input
    sys_hub_action_output
    sys_hub_action_type_snapshot
    sys_hub_flow
    sys_hub_flow_block
    sys_hub_flow_input
    sys_hub_flow_snapshot
    sys_hub_step_ext_input
    sys_hub_step_ext_output
    sys_documentation

    This will result in text_index events being created for these tables for updates by Flow Designer. Note that if you are running flows in a domain-separated instance with versions of New York or earlier, it may create these records in each domain. This issue has been resolved as of Orlando. The approximate updates are as follows:

    Action

    Number of Inserts/Updates

    Dynamic share creates flows for insert and update28Insert flow is triggered for the first time9Update flow is triggered for the first time12Delete a dynamic share1 (sys_metadata_delete)
    Info

    Once the dynamic share is created using Flow Designer, every field, except Active, will be read-only.  You can only use the Active field to enable or disable the flow created with this dynamic share to ensure replication. 

    Prerequisites:

    • Follow the steps to Get Started with DataSync for ServiceNow
    • Create a ServiceNow shared queue
    • (Optional) You have user access to Flow Designer in your ServiceNow instance. This will allow you to troubleshoot any issues creating flows but is not required as flows can be created as long as you have access to the Perspectium application and dynamic shares.

    Instructions:

    In your ServiceNow instance, go to Perspectium > Perspectium Core > Shares.
    Select Dynamic Share.
    Select Create New Dynamic Share.
    Select Flow Designer as your share type and click Submit.
    (info) NOTE: This is not editable - if you wish change the share type of this dynamic share once you save, you will have to delete the dynamic share and create a new one.
    Enter a name of your new dynamic share in the Name field.
    In the Table dropdown, find and select the table which includes the data that you want to dynamic share out of your ServiceNow instance. 

    (info) NOTE:

    • Flows can be run against any table like any business rule created globally.   However, in ServiceNow's Orlando release, SLA Task has its own application trigger. You cannot create a dynamic share using SLA Task Application Trigger. You can still select task_sla in the dynamic share's table field. The flow designer record for SLA Task will not be accessible, however, the dynamic share will still apply. 
    • The sys_audit table is unsupported.
    Check the Active box to activate your dynamic share.
    In the Encryption Method dropdown to select a method to encrypt the data. 
    Cipher options include:

    Encryption Method

    Dynamic shared data will...

    TripleDESbe encrypted with Triple DES.AES128

    be encrypted with AES-128.

    AES256

    be encrypted with AES-256.

    (info) NOTE: To ensure AES-256 encryption for your data, you will need to create an encryption and decryption key with at least 32 characters in the PSP Properties module.

    Base64 Encode Onlyhave Base64 encoding only.Unencrypted

    not be encrypted.

    Scroll to the Trigger Conditions tab and check as many of the following boxes as you wish:

    Action

    Record data will be shared out of your ServiceNow instance when...

    Create

    new records are created. 

    <table_name>.insert

    Update

    record data is changed.

    <table_name>.update

    (info) NOTE: Flow does not support delete. This is a platform limitation where Flow Designer only works on inserts and updates. To capture delete actions, you will need to create a dynamic share using business rule for delete, and have a separate dynamic share using flow for insert and/or update. If you choose to create a dynamic share for deletes, you may want to enable the Use Audit Delete Listener feature. 
    In the Additional Settings tab, click the Search icon next to the Target queue field and in the Queues popup, select the shared queue that you want to dynamic share your record data to.
  • Additionally, dynamic share provides other options that can enhance sharing your record. Share base table records onlyinteractive only, and much more.

    See Features for dynamic share or Features for dynamic shares and bulk shares.

    (info) NOTEScheduled sync up can be enabled with flow. However, this option is primarily used for capturing dynamic record updates and creates that may have been missed due to business rules being bypassed programmatically (e.g., via setWorkflow('false');) or automation that does not trigger business rules, which flow handles.   

  • Click Submit to save your changes.
    Warning

    (warning) WARNING: Editing the flow in the Flow Designer will not reflect on the dynamic share. Doing otherwise may cause some of the records to not replicate correctly. 

    Calling the Flow Designer as a Sub-Flow may also cause some of the records to not replicate correctly.

    (info) NOTE

    • Flows can be created in the global application space like business rules.
    • Flows performance is like running business rules async in the background, so the performance is similar to that which is better than standard business rules that block when the business rule is set to run before or after.  

    Known Issues

    • Group share will only create dynamic share with a business rule approach, choosing flow is not yet an option for group share. 
    • The information message states a delete action for the flow approach. Flow designer DOES NOT support deletes. 
    UI Expand
    titleReset dynamic share rules
    Divbox
    stylebackground: white

    When one or more dynamic shares accesses the same table, you may need to reset the dynamic share business rules for those dynamic shares.

    You can reset dynamic share business rules for individual dynamic shares by navigating to Perspectium > Perspectium Core > Shares. Then, go to View Dynamic Share and click into the dynamic share you want to reset business rules for, and then click Reset Dynamic Share Rule under Related Links.

    Image Removed

    Alternatively, you can reset the business rules for all of your dynamic shares by going to Perspectium Perspectium Core Shares Dynamic Shares Reset Dynamic Share Business Rules.

    Image Removed

    Image Removed

    UI Expand
    titleDynamic share rules dashboard
    Divbox
    stylebackground: white

    You can view information about the business rules created by each of your dynamic shares in the Dynamic Share Business Rules Dashboard.

    To view your dashboard, go to Perspectium Perspectium Core > Shares > Dynamic Share > Dynamic Share Rules Dashboard.

    The first column of the dashboard displays the name of your dynamic shares, which you can click on to be redirected to the dynamic share record. And the second column specifies which table each share is targeting.

    For the domain and application columns, a green checkmark indicates that the business rule is created in the global domain or application, whereas a red X indicates that the business rule is created in a non-global domain or application.

    The last column checks whether or not the the business rule is unique. A green checkmark indicates that the business rule created by the dynamic share is unique, meaning no other share targets the same table. A red X indicates that the business rule is not unique, meaning at least one other dynamic share targets the same table. 

    Image Removed

    When one or more dynamic shares accesses the same table, you may need to reset the dynamic share business rules for those dynamic shares. 

    Explore the various sections below to learn about the different features that can be used with dynamic share to customize your DataSync experience. These optional settings allow you to make your organization's integration processes more powerful and streamlined. 

    UI Expand
    titleAdvanced dynamic share configurations
    Divbox
    stylebackground: white
    UI Expand
    titleConfigure business rule timing and order
    Divbox
    stylebackground: white
    UI Expand
    titleData alignment
    Divbox
    stylebackground: white
    UI Expand
    titleInteractive only
    Divbox
    stylebackground: white
    UI Expand
    titleLimit shared child tables
    Divbox
    stylebackground: white
    UI Expand
    titleScheduled sync up
    Divbox
    stylebackground: white
    UI Expand
    titleShare historical data
    Divbox
    stylebackground: white
    UI Expand
    titleShare only selected fields
    Divbox
    stylebackground: white
    UI Expand
    titleShare only updated fields
    Divbox
    stylebackground: white
    UI Expand
    titleShare on updated display values
    Divbox
    stylebackground: white
    UI Expand
    titleShare or ignore on specified field updates
    Divbox
    stylebackground: white
    UI Expand
    titleUse audit delete listener
    Divbox
    stylebackground: white
    UI Expand
    titleUse Delete Recovery Listener
    Divbox
    stylebackground: white
    UI Expand
    titleView business rules before a dynamic share runs
    Divbox
    stylebackground: white
    UI Expand
    titleView dynamic share domain and scope
    Divbox
    stylebackground: white

    Dynamic Share

    Send records out of your instance as they are created, updated, and/or deleted.

    Bulk Share

    Send a snapshot of data at a point in time from your instance. 

    Scheduled Bulk Shares

    Schedule one or more bulk shares to run at a time you choose. 

    Group Share

    Select the tables you want to share and control them in one location.