Restricting Data By Rules
  • Updated on 11 Apr 2019
  • 1 minute to read
  • Print
  • Dark
    Light

Restricting Data By Rules

  • Print
  • Dark
    Light

This tutorial demonstrates how a Systems Administrator can restrict designers from using certain fields in a Data Structure by adding a Data Rule. This looks like a rule but the Data Rule is added by navigating to Systems in designer Folders and set up. After the Data Rule is set up, it will appear in the flow designer when the user searches in All Steps using the search bar.

2018-09-12_102633.jpg

Example

This example will demonstrate how to apply a Data Restriction Rule to an Account Data Type. Start byadding a Data  Rule that will display only data fields that start with “a” under Account Data Type
Navigate to the System > Designers > Toolbox Customization > Data Rules Folder in the Portal . Then, select the Add Data Rule button on the Folder Actions Panel.

2018-09-10_143938.jpg

Next, name the Data Rule and select the Data Type, in this example (Account) is used from the Decisions database.  Save the Rule to close and locate the new rule in Designer View.

2018-09-10_144218.jpg

Next, In Designer View locate the Rule, right click and go to Actions > Edit Rule to open the Rule Designer.

2018-09-10_145240.jpg

Design the rule to evaluate whether or not the name on the account starts with a. The Rule reads, (name Starts With a). In the rule phrase builder, pick name and select Next . This Rule Input represents a data field within the complex data type. Set the mapping to Constant and give it the value a. Close the rule phrase builder. This completes our Rule design. 
2018-09-10_150128.jpg

Restart Service Host Manager to apply data rules. Navigate to System > Restart Instance or navigate to Services on the computer and scroll down to Service Host Manager, right-click and select Restart.

2019-04-11_131340 (3).PNG

To test this Data Restriction Rule, navigate into a Flow Editor where the Account Data Structure is being used, and check the data fields that are visible. Verify that the only data fields seen start with the letter A.

New Screenshot.png

Was this article helpful?