DYNAMICS 365 HOW TO ADD AND USE NAMESPACE IN JAVASCRIPT
In this previous post, we have learned how to create, structure and organize the Dynamics 365 Web Resources files . In this post, we will learn how to add and use namespace in Dynamics 365 JavaScript web resource and how to call the functions. In the JavaScript web resource, add your specific namespace as per the below code var CAKBlog = CAKBlog || {}; //Create CAKBlog namespace CAKBlog.Form = CAKBlog.Form || {}; //Create CAKBlog.Form namespace CAKBlog.Form.Account = function () { //Create CAKBlog.Form.Account namespace //Functions are added here }(); Add your functions' logic inside, noting that these functions are private and cannot be directly called CAKBlog.Fo...