Transfer Order Shipment Validation D365FO


Transfer Order Shipment Validation in Extension COC


Yesterday, I received the requirement to put some custom validation during transfer order shipment.

As everyone knows that in D365FO over-layering is not allowed anymore. So I have performed this task in extension.

In extension, You have two options to perform this task.


1st-Way

Create the form extension and replace the shipment menu item with my custom menu item and after performing my successful custom validation call original menu items.

2nd-Way

Create extension class of  InventTransferUpdShip and override the check method using COC pattern and perform our custom validation.

I decided to go with COC and the following are the code snippet I have to write 



[ExtensionOf(classstr(InventTransferUpdShip))]
final class SLD_InventTransferUpdShip_Extension
{

    boolean validate()
    {
        
        boolean ok = next validate();

        
             ok=ok && this.validateTransferOrderShip(ok);
        
        return ok;
    }


  public boolean validateTransferOrderShip(boolean flag)

    {
        // write your validation here... 

     return flag;
  }

}

Support Faryal's Cusine


LCS Deploy-able Package merging


LCS Deploy-able Package merging 


Sometimes times we need to Apply multiple packages on Production especially when we are applying Both Application hotfixes and Binaries (Deploy-able packages).


There is a simple way to merge multiple deployable packages into a single package.

Step-1 Navigate to Assets library then click on the deployable package.
Step-2 Select multiple packages and click on merge.


Step-3 A Pop will appear like the below image, Enter package name and description.


Step-4 Click on confirm button. The package will appear in deployable with the name you entered.


Step-5 Navigate to environment click on maintain and apply combine hot fixes.



Support Faryal's Cusine


Virtual Fields Vs Computed Fields

  Virtual Field: A virtual field in D365FO is a field that doesn't have a direct representation in the database. It's a field that y...