how to get Email Id by role...

how to get Email Id by role...

  
Hi Community...

how get Email id of an employee, depends at role...

i have to send the Email to HR manager,in business process, and i have HR Manager Role in my application..
i wan to get the email Id of employee who have HR Manager Role..

i'll be thankfull to you...

Regards

Israr...
Hi.

With the plataform 6.0 (User - eSpace),  (FWIK) that can (only) be done consuming directly the system entities, USER, USER_ROLE and ROLE  and creating a query that retrieves you what you want (don't forget to use the Roles.<RoleName> to get the role id).


Regards.
Hi Daniel,
Thank you for hints,
yes i did the same procedure, and i can use this technique in web screen,
but how i use in business process, i have to assign this to an email in business process,
problem is i cant access this query in business process..what to do..?

Regards

Israr

Hi again, Israr.

In order to use that logic in a Process, you should isolate that query and the send_email logic in one action. It seems that you can not  use OS queries and function actions or actions with output parameters in a bussiness process.

I think in this way, you are able to achieve your goal.

Regards.
Thank you so much....

its solved just 5 mint ago...

i set the FUNCTION property to YES,of my created action. default this property is NO...so i was missing it...

thanks again....
Regards 

Israr..