In the world of enterprise resource planning (ERP) and customer relationship management (CRM) systems, Dynamics 365 stands as a powerful and versatile solution provided by Microsoft. With its extensive customization capabilities, Dynamics 365 empowers organizations to tailor their business processes and workflows to their specific needs.
Step 1: First write a module and function for the common function.
Let assume you want to use func1 in another function in another file/module.
Step 2: Next you have to create the Common file with above code.
Step 3: Then you have to write the actual function and use that func1 to your code.
Let us assume that you want to use that func1 function in func2 function in Code Module.
Step 4: Now create this Code module as a js file in your solution.
Step 5: Now lets say you want to use this func2 in a Entity ‘CustomEntity’ on save of Main form.
So you have to add that func2 as a ‘OnSave’ Event in that ‘Main form’.
Step 6: After adding that file in form library, you have to add that Common file in the same form also.
NOTE: Always remember that you have to add that Common file in the form in ‘FORM LIBRARY’ where you are using that Common Module. Or else you will get an error like – “The ‘Common’ Module is not defined”.
For further queries or demos please comment below or contact us.
For any consultant/support work on O365/ development, contact us or visit our website www.sigilotech.com