The Use Flow feature 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 (because the changes are 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.
Prerequisites
First, you will need to install Replicator for ServiceNow, run the Finish Install scripts, and set your initial Perspectium & Replicator properties.
You will also need to create a shared queue.
Setup a dynamic share using flow
To dynamic share data with the Using Flow option, follow these steps:
Log into your sharing ServiceNow instance and navigate to Perspectium > Replicator > Dynamic Share.
Select Flow Designer and submit.
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 whose data you want to dynamic share out of your ServiceNow instance.
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. |
AES128 | be encrypted with AES-128. |
AES256 | 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. |
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 Submit
Click the Submit button at the bottom of the form to save the configurations for your dynamic share.
NOTE: Once the dynamic share is created with Use Flow checked, 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. Because of the way flows are created in the ServiceNow platform, for any other changes to the flow, you will have to either manually modify the flow directly (using the View Flow Designer UI action option available in the dynamic share's Related Links section) or delete the dynamic share (which will delete the flow it has created) and re-create the dynamic share.