Skip to Content
0

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

Feb 01 at 08:31 PM

103

avatar image
Former Member

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 :)

prueba1.jpg (67.6 kB)
prueba2.jpg (64.1 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers