Skip to content

Commit 8fdb8ac

Browse files
authored
Update missing-form-context-bookable-resource.md
1 parent 220c427 commit 8fdb8ac

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

support/dynamics-365/field-service/scheduling/missing-form-context-bookable-resource.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ When opening the form to create a bookable resource, the error message **Cannot
1818

1919
## Cause
2020

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.
2222

23-
## Resolution
23+
## Resolutions
2424

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.
2626

2727
> [!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.
2929
3030
### Update the form in Power Apps
3131

@@ -48,12 +48,14 @@ You can address such isuses through Power Apps, by editing the form definitions
4848

4949
1. Save and publish the updated form.
5050

51-
### Update the customizations.xml file
51+
### Validate the customizations.xml file
5252

5353
1. Open the customizations.xml file from the solution with the customized form that shows the error in an editor.
5454

5555
1. In the *Handler* element of the *Mscrm.userid_onchange* function, ensure that the *passExecutionContext* attribute is set to **true**.
5656

57+
1. If changes were made, republish the solution.
58+
5759
### Run a script in the browser console
5860

5961
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

Comments
 (0)