You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/dynamics-365/field-service/scheduling/missing-form-context-bookable-resource.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,14 @@ When opening the form to create a bookable resource, the error message **Cannot
18
18
19
19
## Cause
20
20
21
-
The system uses a customized form that is based on an old version of the bookable resource form. There was a change in the internal handlers for *onchange* events. They require the execution context to be passed in from the form.
21
+
The system uses a customized form that is based on an old version of the bookable resource form. There was a change in the internal handlers for *onchange* events. They require the execution context to be passed in from the form.
22
22
23
-
## Resolution
23
+
## Resolutions
24
24
25
-
You can address such isuses through Power Apps, by editing the form definitions of the customized forms in the corresponding customizations.xml file, or by running a script in the browser console to update the onchange event.
25
+
You can address such issues through Power Apps, by editing the form definitions of the customized forms in the corresponding customizations.xml file, or by running a script in the browser console to update the *onchange* event. You need the System Customizer permission to make the changes outlined below.
26
26
27
27
> [!IMPORTANT]
28
-
> The following resolutions assume that the script error references the function *Mscrm.userid_onchange*. If the error shows on other fields and references other functions such as *Mscrm.accountid_onchange* or *Mscrm.contactid_onchange*, adapt the resolution steps to these fuctions.
28
+
> The following resolutions assume that the script error references the function *Mscrm.userid_onchange*. If the error shows on other fields and references other functions such as *Mscrm.accountid_onchange* or *Mscrm.contactid_onchange*, adapt the resolution steps to these functions.
29
29
30
30
### Update the form in Power Apps
31
31
@@ -48,12 +48,14 @@ You can address such isuses through Power Apps, by editing the form definitions
48
48
49
49
1. Save and publish the updated form.
50
50
51
-
### Update the customizations.xml file
51
+
### Validate the customizations.xml file
52
52
53
53
1. Open the customizations.xml file from the solution with the customized form that shows the error in an editor.
54
54
55
55
1. In the *Handler* element of the *Mscrm.userid_onchange* function, ensure that the *passExecutionContext* attribute is set to **true**.
56
56
57
+
1. If changes were made, republish the solution.
58
+
57
59
### Run a script in the browser console
58
60
59
61
To ensure this script has the permission to find and update the required information, you need to run it in a browser tab that has an active session with your enviornment. Additionally, your user account needs the permisssions to update the XML of the customized bookable resource form.
0 commit comments