Send Notification to Multiple Internal Users

Hi everybody,
how can i send an email to Multiple Internal Users in BPM which are not known at design time?
I know i can use an expression, but i have a collection of type string (EmployeeID's). I can use the method getPrincipalByUniqueName(EmployeeID,"user") but employeeID is a collection and this method expected a single string.
regards,
Sid

Hi Anil,
my BPM-WebService will be called with a Request parameter:
users (1..*)
userID (string)
So at Run Time i get a collection or array with userID's like: SD4711, AN4712....
If i use getPrincipalByUniqueName("SP4711","user") i get the right user but i have a collection, so what could i do?
I can determine the interface by my self, so it is not a problem to change the interface if it is necessary.
How can i use getPrincipals(Sting(1..*) principalID)?
regards,
Sid
Edited by: Sid on Dec 13, 2010 3:21 PM

Similar Messages

  • How to create a new role : Need to send notifications to multiple users.

    Hi All,
    I have a requirement where in I need to send notifications to multiple users
    and no. of users in the list is not fixed.i.e. this builds up dynamically.
    Kindly let me know how do I achieve this.
    Also wanted to know where form the Workflow roles get created i.e. who inserts data into wf_roles and wf_user_roles tables. Is there any UI to create roles and associate users with them.
    Thanks,

    Hi,
    Yes - by default all responsibilities are defined as roles in the Workflow directory. You just need to identify the role that corresponds to the responsibility (look at ORIG_SYSTEM and ORIG_SYSTEM_ID columns, IIRC) and then send the notification to the role.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to send notifications to multiple person with same role and with result

    How to send notifications to multiple people with resultout as approve/reject?
    We are looping the notification by attaching a cursor query to find the different emp nos to send for approval.
    I cannot associate a role because these emp nos are sub-set of a role which I have created and i am getting thru the cursor query.
    For FYI notification there is no problem, but for approval notification, I am not unable to send approval notifications to all the people.It stops at the first person in the loop.Pls suggest alternate way. Thanks in advance.

    Manju,
    I would use the cursor to populate the API for creating an ad-hoc role within the workflow process as a function. Then set your notification performer as the ad-hoc role.
    Here is an example function:
    create or replace procedure sample_emp_fill(itemtype in varchar2,
    itemkey in varchar2,
    actid in number,
    funcmode in varchar2,
    resultout in out varchar2) as
    cursor get_name is
    select ename from scott.emp where mgr = 7839 and empno != 7566;
    role_name varchar2(50);
    names varchar2(500);
    begin
    if (funcmode = 'RUN') then
    role_name := 'ad_hoc_role_'|| itemkey;
    for row in get_name loop
    names := names || row.ename || ' ';
    end loop;
    WF_DIRECTORY.CreateAdHocRole( role_name=>role_name,
    role_display_name=>role_name,
    language=>'AMERICAN',
    territory=>'AMERICA',
    role_description=>role_name,
    notification_preference=>'QUERY',
    role_users=>names,
    email_address=>' ',
    fax=>'',
    status=>'ACTIVE',
    expiration_date=>'');
    resultout := wf_engine.eng_completed||':'||wf_engine.eng_null;
    return;
    end if;
    end;

  • Send EMail to Multiple external users

    Hi
    Is there a way to send EMails to multiple external users dynamically. I can see that we can send EMails to only static Email addresses for multiple external users.
    Thanks
    Vidyadhar

    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/10057e20-2ca2-2d10-1b91-a1b9a8c8e634

  • Send notification mail to SAP user in step mail

    Dear All:
    My requirement is to send notification mail to multiple SAP user when a PO is created.
    I am using step mail.
    Kindly help me with this.
    shegar

    Hi,
    Follow the below steps,
    I hope you might have already created a workflow, or else cretae a workflow template from PFTC transaction and link the event of Created of the PO respective vusness object.
    2. Then in the workflow determine or a BOR method to determine the agents, or create a RULE from PFAC transaction and include this rule in the send mail step
    3. Include the body of the content in the send mail step....
    Regards
    Pavan

  • Sending notifications to multiple varying recipients.

    Hi All,
    There is an existing Standard Oracle Notification which is being sent to a single user/role i.e. Sysadmin right now. But for a client requirement, I need to be able to send this to multiple users based on the operating unit that is running the workflow. It is a combination of standard users and org-specific users e.g: Sysadmins, APADMINs and say employee supervisor (which will differ for each employee). I understand that I can create role groups in "Global roles" and send it to multiple people. But how to I take care of the variable names in each scenario.
    Any pointers?

    Somewhere in the application there is a call to WF_ENGINE.CreateProcess to instanciate the workflow process and afterward you set the attributes for it. Check who the performer role of that notification is. If it is hard coded to sysadmin then you need to change it to be the value of an attribute (you need to create an attribute if you have not).
    If the performer role is already the value of an attribute then use WF_ENGINE.SetItemAttrText to set the value of that attribute to the name of the ROLE that groups all those users. And then ensure the Expand Roles checkbox is checked.
    Regards.

  • GL Journal approval- Send notification to multiple approver

    Hello
    I want to send GL journal approval notification to multiple approver, once any of the approver approves the journal it should be removed from worklist of all approver. How can we acheive this?
    Pls help
    Thanks
    Avalon

    Hi
    What i am sure of is that you can have specific groups for your journal approval and each of the groups can have specific approvers.
    When i say the above line, i mean that you can have groups like Treasury, Finance and Payroll and each of them have their desiganated approvers.
    Then the level of journal preparer who can also fall to a specific group.
    Once the journal preparer belonging to a specific group prepares a journal, it will route to the journal approver belonging to the specific group.
    I am not sure about whether you can create approval groups and also if you send the journal for approver to multiple approver, than how the other approver will come to know that the journal is approved or rejected or whether has the other person taken any action - it will create dependencies between the 2 person and hence might create confusion.
    So i am not sure about the resolution for your question.
    But if the approach suggested by me matches your requirement, i can forward you the document which contains the step you need to do to achieve the functionality,
    Hope this helps.
    Thanks and Regards
    Manish Jain

  • Can I send notification message to other users?

    Hi all,
    Can abap webdynpro send out notification messages to other users in a portal? If a new user select some employees that have overwritten other same users selection, I need to send out notification message to other users that their selection have been resetted by this particular user. Can this be done in abap webdynpro?

    In NetWeaver 7.0 Enhancement Package 2 there is a new feature called Web Dynpro Notification Service. It lets you send events to any other applications which are listending for that same event id.  In a demo that comes with 7.02 we use this technology to create a chat application.  However this functionality has to be built into each application.  They must have an event handler ready to respond to the event.
    So you could build what you describe into your application - but only as of 7.02.  7.02 for the Business Suite comes with BS7i2010 which is currently scheduled to start ramp-up in Q4.

  • Sending Notifications to Multiple Exchange Recipients

    We have a number of extensions which are answered by any one of several people in a department.  The Unity boxes for these shared extensions are not synched to any one person's individual Exchange account.  How can I send notifications of new messages to multiple e-mail addresses? 
    We tried building a distribution group in Exchange and entering that address in the Unity box, but nothing happens.  Under "Edit Unified Messaging Account (Exchange)" -- if Unity can't/won't send notifications without Synchronize Connection...(Single Inbox) checked, why is that an optional setting?  Without it, the Test button generates the result "No capabilities are enabled on the server."

    Assuming Unity Connection, not Unity since you mention Single Inbox. Specify product and version when posting.
    Single Inbox requires a normal Exchange mailbox, not a distribution list. If you want a DL as the receiptient you need to use the Message Actions menu option and change voicemails to Relay with the DL SMTP address specified.
    PS- Exchange-side message rules are not processed for Single Inbox-deposited messages so creating a rule in Outlook won't work.
    Please remember to rate helpful responses and identify helpful or correct answers.

  • Sending Notification to Multiple Users in Multiple Language.

    Hi,
    In our Apps (R12) environment, workflow is installed in multiple languages. I have a requirement where User can choosed their preferred email language and all notification should be sent to that user only in the preferred language.
    Below is the logic that I am using:
    1) Creating adhoc users for the email addresses and passing user preferred language as 'language' parameter. This language is different for different users.
    2) creating adhoc role and attaching all previosuly created adhoc users to this role.
    Here is where problem comes...
    Notification is going only in the language that is specified while creating adhoc role. This is overwriting languages that are being specified while creating adhoc users !! I even tried not to pass any language while creating role but in that case it is taking language for that session...
    Is there any way to achieve this functionality?
    Thanks,
    Sumit

    Hi,
    Are you expanding the role in the definition?
    I would expect that if you are notifying a role, then the language of the role is used, unless you expand the roles - in which case the language for the users which are part of the role would be used.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • How to send notification when too many users connected

    Hi all !
    I need to send a notification from my web container when there are over 100 users connected, does anybody know how to do it without using vendor's Api but just JEE Api ?
    thanks
    Luca

    mark1970__mtb wrote:
    Hello,
    If you create an object that implements javax.servlet.http.HttpSessionBindingListener,
    you can define valueBound and valueUnbound methods. I usually call it a User class. Also you
    can have a static int, counter, in this class, which is accessible by all
    classes (make it public or create increment, decrement and getValue methods). In
    the valueBound method, get it to increment the static int, in valueUnbound call
    decrement).
    Now in the JSP pages, at the top, check if the User object exists in the Session
    scope. If it doesn't, create one and add it to the Session. This will
    automatically call the valueBound on that object and increment the counter. When
    a persons session expires, or the User object is removed from the session, the
    valueUnbound is automatically called and the counter decrements.
    I usually make this check a seperate JSP page which I include on all the other
    pages. Then all you need to do is get the User.counter value at any time to see
    how many people are on the system.
    Hope it helps
    Mark
    Don't link spam, please.

  • Workflow to send notifications to multiple supplier email ID's

    Hi,
    I am little stuck in one logic. Don't seem to be a complecated but just looking for the right approach.
    I have a custom concurrent program which has a SQL query which returns multiple rows. Each row is a for each supplier e.g.
    Supplier1      [email protected]     123     5000
    Supplier2      [email protected]      456    4000
    Supplier3      [email protected]      789    3000
    This set is returned based upon some criteria mentioned in the where clause of the SQL.
    Ultimate aim is to send 1 notification to each of the email id's and those notification should have the corresponding attribute values.
    3 notifications fired from a workflow triggered by the concurrent program (which actually returns this 3 rows in a SQL)
    Supplier 1 to receive  5000
    Supplier2 to receive  4000
    Supplier3 to receive  3000
    My approach / or the only approach coming in mind is using a cursor for the SQL inside the concurrent program and using a for loop, initiating the workflow each time for a loop iteration i.e for each iteration of loop , workflow procedure will need to be initiated, so item type will be same but item key will of 3 different item key.  Please let me know if this is the only approach or is it somehow possible to fire only one instance of workflow and not 3 different instances to send 3 notifications.
    Ad hoc role creation would not be option here because the number of rows may be large and not just 10-15. I just need the correct approach to handle this,
    Regards,
    Ad

    Can you please explain your requirement in detail? Also why don't you go with a custom table with some references?
    Thanks

  • Send notifications to multiple addresses

    Hi,
    I'm facing a problem with the notifications in srm. I would like to send an e-mail to multiple adrresses related to the same bp, while the system only considers the default address when sending.
    Does anyone know a badi or a program where I can act to add other e-mail addresses?

    Assuming Unity Connection, not Unity since you mention Single Inbox. Specify product and version when posting.
    Single Inbox requires a normal Exchange mailbox, not a distribution list. If you want a DL as the receiptient you need to use the Message Actions menu option and change voicemails to Relay with the DL SMTP address specified.
    PS- Exchange-side message rules are not processed for Single Inbox-deposited messages so creating a rule in Outlook won't work.
    Please remember to rate helpful responses and identify helpful or correct answers.

  • Can't send short message to internal users from SO00

    Hi
         we're trying to send message from transaction SO00 using sap logon name. After sent it, I go to tx SOST and saw nothing in send requests; but if I use an internet address from SO00 this do appear on SOST and I can send it.
    Can you help me?
    Best regards

    Hi,
    I dont think it is possible. This is the Reply for the OSS Message we have raised for the same issue.
    I'm afraid that SAPOffice is not that "smart". When you specify an
    internet address and enter a SAP user name the system will not check
    this entry in address managment. It will assume that you have entered
    a valid RFC822 mail address. I can understand why this functionality
    would be useful (as in say MS Outlook) but SAPOffice is more than a
    mail client.
    As the node specific routing and mail domain checks are carried within
    SAPConnect (SCOT) the error will not be picked up untill RSCONN01 is
    run. This is why no error message is displayed when you enter an invalidemail address in SAPOffice (SBWP).
    You have raised an interesting functionality deficit. I will ask
    development to consider address checks when sending emails to SAP User
    Names.
    Award points if helpful
    Thanks,
    Tanuj

  • Error while sending notificaiton to multiple users

    I created an adhoc role like:
    declare
    l_role_name varchar2(150):='TO_ROLE';
    l_role_display_name varchar2(50):='TO_ROLE';
    l_users := l_1_user||' '||l_2_user;
    l_1_ruser and l_2_user are of fnd_user%user_name type..and they get the user names from fnd_user using a cursor variable.Both l_1_ruser and l_2_user are already having assigned to various roles.
    But for my present scenario i am creating an adhoc role and assigning both l_1_user and l_2_user who are residing in wf_local_roles.
    WF_DIRECTORY.CreateAdHocRole (
    role_name => l_role_name,
    role_display_name =>l_role_display_name,
    email_address => null,
    notification_preference => 'MAILHTML'
    WF_DIRECTORY.AddUsersToAdHocRole (
    role_name => 'TO_ROLE',
    role_users => l_users
    when using the above I am getting:
    Failed Activity Test_NOTIFICATION3
    Activity Type Function
    Error Name -6500
    Error Message ORA-06500: PL/SQL: storage error ORA-04030: out of process memory when trying to allocate 16328 bytes (koh-kghu call ,pmucalm coll)
    Error Stack Wf_Directory.AddUsersToAdHocRole(SEND_TO_ROLE, " ") ........
    any suggestions...
    Edited by: user8612301 on Aug 31, 2011 2:03 PM

    Hi
    I am facing same error. I am using standard workflow API to create and assign a role functionality for sending notification to Multiple users.
    Error Message = ORA-06500: PL/SQL: storage error
    ORA-04030: out of process memory when trying to allocate 16328 bytes (koh-kghu call ,pmucalm coll)
    Error Stack =
    Wf_Directory.AddUsersToAdHocRole
    I would appreciate that if know what could be the issue.
    Thanks

Maybe you are looking for