Skip to Content
Technical Articles
Author's profile photo Jyotika Karnani

Workaround for error on Duplicate Account Number in Payment Information

One of the most common requirement, and of course, logical too, is an error on duplication of  Bank Account Number, at least with regard to audit purpose.

Thanks to a platform like PDC, Karthik_Visu cracked it.

When I did a testing, I knew I have to share it.

This shall be done by a rule, which will have an error message when the conditions are ‘true’

To start with, create an error message-

Navigate to Admin Center–Manage Data

In Create New, select ‘Message Definition’ and fill the required fields-

Navigate to Admin Center– Configure Business Rule.

Select Base Object as ‘Payment Information Detail’.

 

Navigate to Configure Object Definition– Payment Information Detail

Assign this rule to ‘Account Number’ field in Payment Information Detail object

 

With this, duplicate account number entry will throw an error!

 

 

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Saisanjay Talari
      Saisanjay Talari

      Cool. Thank you for sharing.

       

      Best regards,

      Sanjay

      Author's profile photo Ravi Gupta
      Ravi Gupta

      Dear Jyotika,

      This is not working properly with the workflow.

      Even for non-duplicate bank accounts also error message is triggering.

      Author's profile photo Jyotika Karnani
      Jyotika Karnani
      Blog Post Author

      Dear Ravi,

      Can you please share the rule you wrote?

       

      Regards

      Author's profile photo Piyush Agarwal
      Piyush Agarwal

      Hi Jyotika,

      I had implemented the similar above rule, which works fine when we have a new Hire employee but using the Rehire with new employment and that employee had same bank account details, the duplicate error message is showing up.

      Any lead on same would be helpful.

      Regards,

      Piyush

      Author's profile photo Piyush Agarwal
      Piyush Agarwal

      Issue is resolved.

      Author's profile photo Aashima Madan
      Aashima Madan

      Hi Piyush/Jyotika,

      Could you please share the additional changes to make the rule work for Rehire scenario as well. Thanks

      Best Regards,

      Aashima