-
Notifications
You must be signed in to change notification settings - Fork 291
Closed
Labels
Description
I tried to run this test method from the UIAutomation.Sample project and it is failing when the lookup field contains a value. It is showing "System.InvalidOperationException: 'Field: primarycontactid Does not exist'"
public void UCITestGetValueFromLookup()
{
var client = new WebClient(TestSettings.Options);
using (var xrmApp = new XrmApp(client))
{
xrmApp.OnlineLogin.Login(_xrmUri, _username, _password, _mfaSecrectKey);
xrmApp.Navigation.OpenApp(UCIAppName.Sales);
xrmApp.Navigation.OpenSubArea("Sales", "Accounts");
xrmApp.Grid.OpenRecord(0);
xrmApp.ThinkTime(2000);
string lookupValue = xrmApp.Entity.GetValue(new LookupItem { Name = "primarycontactid" });
}
}
Reactions are currently unavailable