cancel
Showing results for 
Search instead for 
Did you mean: 

How to add an employee to the sales team (CurrentEmployeeResponsible)

Sara_ContrerasH
Explorer
0 Kudos

Good afternoon !! I can not add an employee to a sales team. Help please!

Test1: prueba1.jpg

var lc_EquipoVentas = act.CurrentEmployeeResponsible;

foreach (var oneEmployee in resultEmployees) {

var employee2 = oneEmployee.ToRoot;

nodeRef = act.CurrentEmployeeResponsible.Create ();

nodeRef.DefaultIndicator = true;

nodeRef.EmployeeID.content = "00000000000007000012"; nodeRef.EmployeeUUID.content = employee2UIDID.content;

nodeRef.PartyRoleCode = "211"; // Miembro de equipo cliente nodeRef.ValidityPeriod.StartDate = lv_startdate;

nodeRef.ValidityPeriod.EndDate = lv_enddate; lc_EquipoVentas.Add (nodeRef);

}

Test2: prueba2.jpg

var lc_EquipoVentas = act.CurrentEmployeeResponsible;

foreach (var oneEmployee in resultEmployees) {

var employee2 = oneEmployee.ToRoot;

create_employee.DefaultIndicator = true;

create_employee.EmployeeID.content = "00000000000007000012"; create_employee.EmployeeUUID.content = employee2UIDID.content; create_employee.PartyRoleCode = "211"; // Miembro de equipo cliente create_employee.ValidityPeriod.StartDate = lv_startdate; create_employee.ValidityPeriod.EndDate = lv_enddate; act.CurrentEmployeeResponsible.Create (create_employee);

}

Salu2

Sara 🙂

Accepted Solutions (0)

Answers (0)