Monday, August 22, 2022

How to remove country specific Bank account number validation in D365FO

Hi All,

I hope everyone is doing great. Lets see how can we remove the mandatory bank account validation.

Requirement :
In my case requirement is to remove JP country region specific validation, The scenario is quite different because generally all the bank validation is necessary to pass but we want to add all those bank account which user has already added in AX 2009 and same was giving validation error in F&O.so that we have achieved this by below customization.  

Solution:  
We need to skip validation from standard code by creating new extension of Bank_JP class.










Implementation : 
Create extension for Bank_JP class to write COC of method  checkBankAccountNum() and checkBankAccount() and add below code.

[ExtensionOf(classStr(Bank_JP))]
final class Bank_JP_Test_Extension
{

    public boolean checkBankAccount(BankAccountMap _bankAccountMap)
    {
        next checkBankAccount(_bankAccountMap);
        infolog.clear(0);
        return true;

    }
    public boolean checkBankAccountNum(BankAccount _bankAccount)
    {

        next checkBankAccountNum(_bankAccount);
        infolog.clear(0);
        return true;
    }

}

Build your solution and check.

That's it.....:) 

Thursday, August 18, 2022

Create code extension of your object new feature

Hey everyone,

Exciting news! D365FO now has a cool new feature that lets you create extensions for your objects. The best part is, you don't have to worry about remembering complex syntax or messing up the naming convention in your project. It's super handy and makes working on your project a breeze! Check it out!

Check this below features-












It will create new class in your project with standard define format.


Happy Coding.... :) 


How to Post Partial Product Receipt in D365FO Using X++ Code

How to Post Partial Product Receipt in D365FO Using X++ Code How to Post Partial Product Receipt in D365FO Using X++...