- 01 Aug 2023
- 1 Minute to read
- DarkLight
Customer home location cannot be a network or subnetwork location
- Updated on 01 Aug 2023
- 1 Minute to read
- DarkLight
This validation rules prevents assigning a network or subnetwork location as the home location of any new or existing customer. It is the easiest way to make sure all your customers are registered in one of your active locations instead of a network or a subnetwork location that you only use as an internal management tool on the Admin Panel.
Log in to dashboard.nexudus.com if you aren't already.
Click Settings > Validation rules.
Click Add rule.
Click on Manual entry.
Name your validation rule.
Add a Description for your rule to let other admins know what it does at a glance.
Toggle on This rule is active.
Select Customers in the Record type drop-down list.
Add the Error message to display if the validation rule is not met.
Add the following code snippet to the Formula field.
For the network locations only
record.InvoicingBusiness.RootLocation <> null
For the network and subnetwork locations
record.InvoicingBusiness.RootLocation <> null OR record.InvoicingBusiness.RootLocation.RootLocation <> null
Click the Save Changes button.
All done! We recommend you test the rule by trying to assign a network or parent location to a new or existing customer. If the rule works as intended, you should get the error message you defined in the rule.