CRM 4 Custom Workflow to Validate NZ Bank Account/IRD Number
Recently we created a payroll solution which integrated with
Microsoft Dynamics CRM 4, part of that was to validate the
Bank Account and IRD Numbers.
Here's a
screenshot of a sample workflow. You can download the code
from
here.
Solution contains a Util.cs class which you can
use on your other projects to validate New Zealand Bank
Account & IRD numbers as well as 3 workflow
activities:
- BankAccountNumberValidator.cs
Validates the bank account number and returns
true/false (IsValid property)
- CleanBankAccountNumber.cs
Given a bank account number it cleans and formats
it to xx-xxxx-xxxxxxx-xxxx
- IRDNumberValidator.cs
Validates the ird number and returns true/false
(IsValid property)
Enjoy, keep and eye out for
more CRM goodies...