Open pascalkruettli opened 4 years ago
I've had the same problem before, you can try the following code
_xrmApp.Entity.SetValue(new LookupItem() { Name = “OrderFieldHelper.PotentiellerKunde”, Value = “3H44 AG” });
I've had the same problem before, you can try the following code _xrmApp.Entity.SetValue(new LookupItem() { Name = “OrderFieldHelper.PotentiellerKunde”, Value = “3H44 AG” });
Hey Jinfengv I am afraid the suggested solutions does not fix the issue. No matter if I set the index or not it does not work.
try give Schema Name instead of the value mentioned
EasyRepro Version Microsoft Dynamics 365 Online Version 9.1 Serverversion: 9.1.0000.10329 Clientversion: 1.3.2472-191112-195614
Easy Repro Library used is the version currently on Develop Branch
UCI or Classic Web
Online or On Premise
Browser
Describe the bug
We are testing our sales/quote process automaticaly and implemented several testcases. On the 18.11.209 we noticed several of our tests fail now. The last successful execution was on 13.11.2019. We noticed the cause for the failing tests is that the "customerid" field on the Quote is no longer set correctly. Other lookups still work fine.
-> Feature affected is "Entities (Create, Update, Delete, Duplicate Detection, Assign)"
Special formatting / display
No Special formatting. It is a lookup of type customer (so it can contain accounts or contact)
Code to reproduce
`csharp
xrmApp.OnlineLogin.Login(_xrmUri, _username, _password); //we jump directly to quotes by using the accoring url //eg. /main.aspx?app=d365default&pagetype=entitylist&etn=quote _xrmApp.CommandBar.ClickCommand("Neu");
_xrmApp.Entity.SetValue(new LookupItem() { Name = OrderFieldHelper.PotentiellerKunde, Value = customerValue, Index = 0 }); //_xrmApp.Entity.SetValue(new LookupItem() { Name = OrderFieldHelper.PotentiellerKunde, Value = customerValue }, 0); does the same