Dynamic shares allow for real time sharing of ServiceNow records as they are created, updated, and/or deleted. Creating a dynamic share for a table will allow you to sync records for that table with the records in another application instance. The Dynamic Share module under Replicator in ServiceNow lists your dynamic share records that specify the format, conditions, and destination of data that will be dynamic shared out of your ServiceNow instance.
- Because 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.
To create a DataSync for ServiceNow dynamic share, follow these steps:
Navigate to Dynamic Share
In ServiceNow's left side navigation window, navigate to Perspectium > Replicator > Dynamic Share or simply type and then click on Dynamic Share.
At the top of the form next to Replicator Configurations, click the New button.
Choose Dynamic Share Type
Select Business Rule and click the Submit button.
NOTE: Once you select a type, you cannot change this dynamic share to the other type (i.e. change from Business Rule to Flow or vice versa). You will have to delete the dynamic share and create a new one.
Type a dynamic share name
In the Name field, type any name for your dynamic share.
Choose a table to dynamic share
Click the dropdown next to Table. Then, search for and choose the table or database view whose data you want to dynamic share out of your ServiceNow instance.
NOTE: sys_audit and sys_user_has_role tables cannot be selected since they do not support business rules.
Make your dynamic share active
Check the Active box to activate your dynamic share and start sharing out record data dynamically.
Choose an encryption method
Choose a method to encrypt the data that will be shared out from the Encryption Method dropdown. Cipher options include:
|Encryption Method||Dynamic shared data will...|
|TripleDES||be encrypted with Triple DES.|
be encrypted with AES-128.
be encrypted with AES-256.
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 Only||have Base64 encoding only.|
|Unencrypted||not be encrypted.|
Choose your trigger conditions
Scroll down to the Trigger Conditions tab and check any or all of the following boxes:
|Action||Record data will be shared out of your ServiceNow instance when...|
|Create||new records are created.|
|Update||record data is changed.|
|Delete||records are deleted.|
Choose a target queue
Click the Additional Settings tab and then click the icon next to the Target queue field. In the Queues popup, choose the shared queue that you want to dynamic share your record data to.
Click the Submit button at the bottom of the form to save the configurations for your dynamic share.
NOTE: The dynamic share will not save if an already existing dynamic have the same values in all the following fields: Table, Create, Update, Delete, Target Queue and Conditions.