We intended to open a specific Product form, distinct from the default one, when clicking a view button. Since using a ‘Select Form’ rule was not viable, we opted for the following code solution. When employing the ‘FormManager.showEditDialog’ function, we…
Category: JavaScript
How to retrieve the record Id of the parent form using (Form Component Control)
We were initially tasked with displaying a list of Work Order Incidents that are associated with the Resource Requirement, which, in turn, is linked to the current Booking record. To fulfil this requirement, we utilized the Form Component Control feature…
How to Automatically Populate Values on an Inspection in Field Service
To prepopulate questions on an inspection, you should begin by adding the Inspection Response Id field onto the Work Order Service Task form. This field can be hidden or displayed, as needed, but it must be included on the form.…
How to lock fields on a Form and Business Process Flow
Lock Business Process Flow fields only The function below locks all fields which contains the word “header_process_” this ensures that only fields that are in the Business Process Flow are locked and not on the form. Lock form fields only…
How to force a confirmation dialog to appear before record save in Dynamics 365
Below is an example of working code which displays a confirmation dialog before the save of a new record, if the user presses ‘OK’ then the record will save or if the user presses ‘Cancel’ then the record will not…
Examples of using await in Dynamics 365 JavaScript
Below are just some examples of using await inside of JavaScript for Dynamics 365. I know that there are many ways of achieving this but these are just some examples which I have used in the past which work very…
How Dynamic’s reacts to multiple instances of the same field on a form.
I noticed that Dynamic’s has a particular way of handling multiple instances of the same field on a form. I have added three instances of the description field on the Account form. If you add the same field on a…
Loop through selected records in a Multi-Select view custom command with Resco Mobile CRM
You cannot create a form rule for your custom Multi-Select command which means that you will need to add some Offline HTML to execute your custom rule. To apply your custom rule you will need to add a new command…
Bypassing frontend validation on the web using Fetch
This is just an example of how you could possibly bypass certain front end validation by executing an asynchronous fetch within the developer tools console. When trying to create a new process in Resco Cloud, there is a function called…
Generating a mobile report and attaching it to an email using JavaScript in Resco Mobile CRM
In this post I will show an example of how to execute a mobile report and sending it within an email using javascript in Resco CRM. I had a requirement to provide a way of quickly creating an email with…