Tengo una primera tabla de absentismos en el trabajas donde aparece la división del personal a la que pertenece cada trabajador que se encuentra de baja, la fecha en la que se dio de baja y la que finaliza, el nombre de la persona y su matrícula como trabajador. Tengo una segunda tabla donde se encuentran los las divisiones, los jefes de las divisiones y sus correos electrónicos. Mi objetivo es que los jefes de las divisiones sean notificados de las personas que se encuentran de baja en su notificación.
Para ello realice la enumeración de la primera tabla y de la segunda. Después, puse una condición en un aplicar cada uno para poder iterar y que comparase la primera tabla con la segunda y igualando los contenidos dinámicos de los divisiones y enviase el correo para los que coinciden.
Me da errores y no encuentro la forma de hacerlo. solicito ayuda para poder realizar el flujo, para solucionar el problema al comparar las dos tablas.
(I have a first table of absenteeism in the work where it appears the personnel division to which each worker who is on leave belongs, the date on which he/she left and the date on which he/she leaves, the name of the person and his/her registration as a worker. I have a second table where I have the divisions, the heads of the divisions and their e-mail addresses. My objective is that the heads of the divisions are notified of the persons that are on leave in their notification.
To do this I made the enumeration of the first table and the second table. Then, I put a condition in an apply each one to be able to iterate and that it compares the first table with the second one and matching the dynamic contents of the divisions and send the mail for those that match.
I am getting errors and I can't find the way to do it. I am asking for help to be able to make the flow, to solve the problem when comparing the two tables.)