Open brianb23 opened 2 years ago
@brianb23 Could you explain what issue you have? What error did you get?
@brianb23 Could you explain what issue you have? What error did you get?
The code works, I just needed to do some tweaks on my codes. My question right now is how I open the newly created Account/Contact in D365? Please see below for the process.
I just wanted to do those 2 steps in one run of the script. Thanks!
@brianb23 You can use something like this to check accoun\contact (where "name" - account name attribute) https://github.com/microsoft/EasyRepro/blob/develop/Microsoft.Dynamics365.UIAutomation.Sample/UCI/Read/OpenAccount.cs
var accountName = "Account";
xrmApp.OnlineLogin.Login(_xrmUri, _username, _password, _mfaSecretKey);
xrmApp.Navigation.OpenApp(UCIAppName.Sales);
xrmApp.Navigation.OpenSubArea("Sales", "Accounts");
xrmApp.Grid.SwitchView("Active Accounts");
var gridItems = xrmApp.Grid.GetGridItems();
var accountFound = gridItems.FirstOrDefault(x => x.GetAttribute<string>("name") == accountName) != null;
I would like to try this one, but our environment has set up as the View for "My Account" for an instance is hidden. The only way you can open the created Account record is via the Advance Find. And if I create an Account from third-party URL, the account creator is not set as endUser, it's different User. So the way that I think of is using query "created on = today". If you can help me with this.
Advanced search is not covered, for now, you can just implement this method yourself
I will try this one. Thanks. So we don't have yet covered the Advance Find functionality for now?
I will try this one. Thanks. So we don't have yet covered the Advance Find functionality for now?
Hi! I noticed that the GlobalSearch is not working. Is it because of the Release Wave 2 update?
public void UCIOpeningContactRecord() { var client = new WebClient(TestSettings.Options);
using (var xrmApp = new XrmApp(client))
{
xrmApp.OnlineLogin.Login(_xrmUri, _username, _password, _mfaSecretKey);
xrmApp.Navigation.OpenApp(UCIAppName.Sales);
xrmApp.ThinkTime(2000);
xrmApp.Navigation.OpenGlobalSearch();
xrmApp.GlobalSearch.FilterWith("Contact");
xrmApp.GlobalSearch.Search("bry4@test.com"); //not working, it's not searching the record
xrmApp.ThinkTime(2000);
}
}
1337
I want to create an Account record from our third-party URL. The question is where do I put my code? 'coz the one below does not work. Hope someone can help me. Thanks!
[TestMethod] public void CreateSampleAccout(LoginRedirectEventArgs args) { var client = new WebClient(TestSettings.Options); using (var xrmApp = new XrmApp(client)) {
}