-
Notifications
You must be signed in to change notification settings - Fork 291
Closed
Labels
Milestone
Description
Bug Report
Issues should only be created for items related to covered functionality.
Not covered functionality, feature requests, and questions should use the Feature Request or Question templates.
EasyRepro Version
- Microsoft Dynamics 365 Online Version 8.2 (8.2.x) (DB 8.2.x) online
- Microsoft Dynamics 365 Online Version 9.0 (9.0.x) (DB 9.0.x) online
- Microsoft Dynamics 365 Online Version 9.0.2 (9.0.2) (DB 9.0.2) online
- Microsoft Dynamics 365 Online Version 9.1 (9.1.x) (DB 9.1.x) online
UCI or Classic Web
- UCI (XrmApp)
- Classic Web (XrmBrowser)
Online or On Premise
- Online
- On Premise
Browser
- Chrome
- Firefox
- IE
- Edge
Describe the bug
I have created a test case that opens a Quick Create form and attempts to populate required fields. The code I'm using is below. It fails on the first _xrmApp.QuickCreate.SetValue line, with the error message "MoveToElement cannot move to a null element with no offset. Parameter name: toElement"
Special formatting / display
Code to reproduce
var _client = new WebClient(TestSettings.Options);
var _xrmApp = new XrmApp(_client);
_xrmApp.OnlineLogin.Login(_xrmUri, _username, _password);
_xrmApp.ThinkTime(1500);
_xrmApp.Navigation.OpenApp(UCIAppName.AppName);
_xrmApp.Navigation.QuickCreate("Deal");
_xrmApp.QuickCreate.SetValue(new LookupItem { Name = "new_field1", Value = "123Dentist" });
_xrmApp.QuickCreate.SetValue(new OptionSet { Name = "new_field2", Value = "Public" });
_xrmApp.QuickCreate.SetValue(new OptionSet { Name = "new_field3", Value = "New Origination" });
_xrmApp.QuickCreate.SetValue("new_field4", "100");
_xrmApp.QuickCreate.SetValue("new_field5", "50");
_xrmApp.QuickCreate.SetValue(new LookupItem { Name = "new_field6", Value = "Bank of America" });
_xrmApp.QuickCreate.SetValue(new BooleanItem { Name = "new_field7", Value = false });
_xrmApp.QuickCreate.Save();Expected behavior
I would expect this code to populate my fields and save the entity. I have also tried using _xrmApp.Entity instead of QuickCreate with the same results.
Screenshots
Additional context
Reactions are currently unavailable