Kids, don't try this at home!

Tips & Tricks for C#, ASP.NET and CRM

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

Comments

Hari Prasad said:

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

# June 24, 2009 11:23 PM

gperera said:

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

# June 25, 2009 12:31 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)