Skip to Content
Sep 18, 2019 at 01:02 PM

Query all the employees in the system in ByD

103 Views Last edit Sep 20, 2019 at 02:31 AM 5 rev

Hi experts,

I am trying to query all the employees in the system to pass the data to some custom BO. My query is as follow:

var queryByEmployeeBID = Employee.QueryByIdentification;
var queryByEmployeeBIDParameter = queryByEmployeeBID.CreateSelectionParams();
queryByEmployeeBIDParameter.Add( queryByEmployeeBPD.IdentificationBusinessPartnerID, "I", "GE", "0");
var employeeQueryResult = queryByEmployeeBID.Execute(queryByEmployeeBIDParameter);<br>

is it the correct way? if not can someone give me a better idea?