Updating the field value successfully even it is dependent field.

In some standard functionalities the field value is depended to another field value, so we can’t set some value as we expect to run another functionality (for some integration).

Example.

In sales order the shipping method is set to be FedEx123 and we can calculate the Shipping cost but for integration I need to be set the Shipping Method as Integrated FedEx123 method. In this method we can’t calculated the shipping cost. For this issue we can resolve this by,

  • Creating the custom record with shipping method name and Integrated shipping method name field.
  • Create the Entities in Custom record with Shipping method and the corresponding Integrated Shipping method name.
  • In the User event Script BeforeSubmit by getting the Shipping Method field value and load the particular Custom record and update the Intergrated shipping method field value in the Sales order shipping method field.
  • By following the above we can set the Shipping cost even using Integrated shipping method.

Creating the Custom record to manipulate the filed value as per our need without and Dependent field issues.

Leave a comment

Your email address will not be published. Required fields are marked *