question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Quick Create Form Does Not Populate

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AngelRodriguez8008commented, Jan 9, 2020

@rswafford

thanks. I’ll try to figure out a way to maintain the custom dll with my fixes because the latest version isn’t working perfect. @u3021007 If you made changes to the dll, how would you manage your fixes when you upgrade to the new version? Thats my main concern about using custom dll.

I have the same problem; I fix the bugs, add features & optimize my custom DLLs. My version work well in my “test system”, but I’m not sure about how it works other Environments, I have no time to run all sample tests (locally) & I have just one system (is not for play). Most of my tests are not suitable for run in a “clean trial system”, because we have our own customization (I’m not the only one see for example #704). I want to contribute, at least with tests to be corrected, but it is take a lot to time to translate my tests, sometimes is not even possible. Now my version is maybe great, but there is no way to give it back to the community or even try if all “community tests” are working well. I think we required some kind of D365 Shared Develop/Test Environments (inclusive Build Server) where we can put, run & share tests for our “custom dlls” with improvements, fixes & even features that the “Standard EasyRepro” didn’t support. Where any developer should be able to add his own customization and share his tests succeeded or failures. I guess it is not too complicate for the Microsoft people. That can accelerate the development & get less frustrated EasyRepro “users”. We also require some way to add some features that are maybe not in the „Standard EasyRepro“, but are AddIns/Extensions that we can share with others developers. Ex. #170 (#184) some people will like it see discussion #463

0reactions
TYLEROLcommented, Jan 14, 2020

A change was published the latest 9.1.0.11711 NuGet package this past Friday, as well as the latest releases/v9.1 branch.

Please let me know if anyone continues to face this issue and we can re-open for further investigation.

Warm Regards, Tyler

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quick Create form not showing up from subgrid
Solved: I have allowed quick create form for one of my entities. I have added a subgrid of that entity in its parent...
Read more >
Quick Create Form is not appearing in dynamics CRM
I've created quick create form of a custom entity ABC. In entity properties, I also enabled Allow Quick Create Form. Lastly, lookup of...
Read more >
Tag Archives: populate values from on quick create form
Posts about populate values from on quick create form written by Rawish Kumar Prajapati.
Read more >
Javascript to open a related quick-create form
I've been working on a javascript snippet that when you click on a button from the ribbon, it opens new quick create form...
Read more >
Setting values in a Dynamics 365 CE quick create form ...
Unfortunately, the main form would not be saved at the time the quick create form was opened, so the value couldn't be read...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found