Does anyone have a code snippet for an automation script to retrieve a profile instance by name, please?
Hi Jochen
In addition to the answer of Ive, the ProfileManagerHelper is obsolete starting from 10.0.8 (Feature release) /10.1.0 (Main release). Instead, there is a ProfileHelper that you can use to search in a similar way:
var profileHelper = new ProfileHelper(engine.SendSLNetMessages);
var nameToSearch = "ProfileInstanceName";
var retrievedProfileInstances = profileHelper.ProfileInstances.Read(ProfileInstanceExposers.Name.Equal(nameToSearch));
Hi Jochen,
You can do this using the profileManagerHelper.
e.g.
private static ProfileManagerHelper pmHelper = new ProfileManagerHelper();
pmHelper.RequestResponseEvent += Helper_RequestResponseEvent;ProfileInstance thisInstance = pmHelper.GetProfileInstancesWithFilter(ProfileInstanceExposers.Name.Contains("part of my name")).FirstOrDefault();