Tuesday, October 07, 2008 7:06 PM gperera

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.

Workflow

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...

Filed under: , ,

Comments

# re: CRM 4 Custom Workflow to Validate NZ Bank Account/IRD Number

Wednesday, June 24, 2009 11:23 PM by Hari Prasad

Hi, this looks great but I can't download the code.

# re: CRM 4 Custom Workflow to Validate NZ Bank Account/IRD Number

Thursday, June 25, 2009 12:31 AM by gperera

Please contact me via www.magnetism.co.nz/contact_us.aspx for the code

Leave a Comment

(required) 
(required) 
(optional)
(required)