Workflow Notifications not sending for AdHoc Role

Hi,
I am trying to send my workflow to multiple dynamic users, using the call createAdHocRole.
Here is my code (I currently am using 2 user names for testing. This will be eventually be a variable) :
+-- create role --+
apps.wf_directory.createAdHocRole(v_role_name   -- role name
+, v_role_name -- role display name+
+, null -- language+
+, null -- territory+
+, null -- role description+
+, null -- notification preference+
+, 'JEHANSEN,DCDRIGGS' -- role users+
+, null -- email addresses+
+, null -- fax+
+, 'ACTIVE' -- status+
+, trunc(sysdate) + C_PURGE);+
When I run the workflow, it runs with no errors, but I am not receiving any emails. I can view the workflow in the Status Monitor and I see the Notification being created and it shows my new role as the performer. Both usernames that I am using for the Role Users are setup as Users and Employees in the environment.
I've queried the WF_USER_ROLES_ASSIGNMENTS table and I see my new role there, and both usernames are in the table. Both users are also in WF_USERS with email addresses, and also in WF_LOCAL_USER_ROLES. When I query WF_NOTIFICATIONS, I see the notification being created there, with a status of OPEN, receipient_role being my new role, mail_Status is blank, responder is blank, original_recipient is my new role, from_user is the supplier, and to_user is my role name .
Can anyone see what I am missing? I thought if I create the role with a null email_address it then sends email to all users in that role? It probably doesn't matter, but these are being submitted upon the change of a PO in iSupplier (Oracle Apps).
Thanks,
Janel

Hi,
Once you have created the role, they can be referenced in your Workflow process in the same way as an other role. For example, create an ad-hoc role "MYTEST123" using the standard WF_DIRECTORY API. Then you can use this as the notification recipient in your process.
If you are creating the roles dynamically within a process, then once the role has been created, set an item attribute (e.g. attribute NTF_RECIPIENT) to the name of the new adhoc role, and then have the notification recipient set to the value of the item attribute.
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

Similar Messages

  • SharePoint 2010: Scheduled Web Analytics Reports workflow is not sending ANY email

    Hello,
    I've a SharePoint 2010 Enterprise farm. I setup a Scheduled Web Analytics Reports workflow in a site collection with different web analytics reports options checked. So far I've not got ANY email. When I went to Site Workflows, I'm seeing that the workflow
    is running. When I click on Completed status, I see below outcome in the Workflow History section:
    "Email sent but reports with no data were not attached."
    And I see below information in the Workflow History list:
    "Attached are the daily Web Analytics reports for 1/7/2015 through 1/7/2015 for SharePoint Site Collection
    http://server/team/site scheduled by workflow "SharePoint Site Web Analytics Reports". "
    I am able to generate the reports manually by going to Site Collection Web Analytics Reports, but I want to schedule them. The problem is I'm not getting ANY email in my inbox. What am I missing here? Are the emails getting filtered by Outlook or workflow
    is not sending emails at all?
    Please help! This is getting frustrated.
    Thanks,
    Ashish

    Hi Ashish,
    Based on your description, my understanding is that the email is not sent from the Scheduled Web Analytics Reports workflow.
    I recommend to the things below:
    1. Check if the Outgoing email has been configured for the web application where you run the Scheduled Web Analytics Reports workflow.
    In Central Administration > Application management > Manage web applications > select the corresponding web application > click General Settings in the ribbon and select Outgoing E-mail.
    2. Make sure that your account has email address configured.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Voicemail notifications not working for iphone 4s

    voicemail notifications not working for iphone 4s

    I had the same problem and after a lot of research here and on Verizon I finally discovered that it was an app named Onavo Extend that was preventing my voicemail from working. Other people have had success resetting their phone or network settings, disabling and reenabling SIRI, or deleting the Neilsen app (which I didn't have)  but those options didn't work for me. A lot of mods have claimed that this is not an Apple problem but if it is caused by an app that Apple allows to be sold in their app store, then it is an Apple problem, not a carrier problem. Of course, sometimes its just an ID 10 T problem.

  • Function Module not working for old Role

    Dears
    Function Module not working for old Role
    Function Module: /VIRSA/BAPI_AE_USERS_FOR_ROLES
    Before EHP4 upgrade this functional module working fine, but after updated users are not visible.
    We have chekced if the users are assigned directly users are visible but indirect (Position Based) assignment users are not apprearing.
    Pl check the fucntion module with given roles below and identify the root cause,
    EP_TRVL_ALL_CAB     - Old Role
    EP_TRN_TRVL_DRGC_V2 - New Role
    Regards
    Krishna Mohan CH
    9704500717

    Krishna,
    I do not think this BAPI is meant to be called by anyone but the application using it, and its functionality may therefore change without notice.
    What are you trying to achieve? Maybe there's a better way to do that...
    Frank.

  • Mail receives OK but will not send for smtp account.  Exchange server receives/sends OK

    mail receives OK but will not send for smtp account.  Exchange server receives/sends OK  I'm away from home, using a family-member's wireless network that has always worked OK in the past.  Today, the same problem occured while waiting in a hospital waiting lounge.  Any ideas?

    The outgoing mail server may be rejecting mail from your network address. Typically that happens when your mail service provider is also your ISP, and you connect to it from another network. The SMTP server will allow connections without a password from anywhere, but it will only relay mail from within the ISP's network. It could also be that your account on the server has expired or been suspended.
    If you need to send mail from outside your ISP's network, use an independent mail service provider. I don't have a specific recommendation.

  • Human Workflow is not sending Email notifications to AD users

    Hi,
    I'm trying to send email notification to the assigness from workflow. If I use the weblogic users with email attributes, Its sending mails. But once I switch to AD and use the AD users it's not. I have made the AD provider to be the first in the list and also able to login to the worklist app using the same user. Problem is that it's not sending mails.
    Can anyone please help soon.
    Regards,
    Thejas

    Can you explain what are AD users and how they are created(APIs)?
    Please check that the user exists in wf_local_roles table.
    select name,notification_preference, email_address from wf_local_roles where name = <AD Username>
    In order to send email notification, the user/role should have the proper email addresses and notification preference set to MAIL* i.e MAILHTMl, MAILHTM2, MAILATTH, MAILTEXT..etc

  • Workflow : Could not send e-mail [10014 : email ...

    hi,
    i am trying to send email notification via workflow, but i am not able to do so. anyone can help to troubleshoot this?
    below are the steps i have carried out for email configuration:
    1. i have added the mail server on mds.ini, MDS is restarted after every changes.
    2. requester and approval has correct email setup at console.
    3. a notification is added in workflow.
    4. telnet ping to mail server with port 25 is fine.
    when i check the log, i have the error :
    "Could not send e-mail [10013 : email : Notify] [Mail server:xxxxxxxxx] [From address:xxxxxxxx] [To address:xxxxxxx
    i know the guidelines and steps for configurations, but apparently it does not workout, so any troubleshoot guideline will be more appreciated.
    Thanks!
    Shanti

    Hi Shanti,
    I am sure you must have checked all this but then again would you please check following things and let us know ?
    1) Please check the SMTP Server Name in your Outlook Express if you are using Outlook
    2) Please log into MDS file and go under that particular Repositoy and check what details you have given for Mail Server
    3) Please give SMTP address in mail server line
    4) Log into Console and check if you have alligned Users and Roles to each other correctly or not.
    5) log into Data Manager and open the workflow and check the properties of Mail notification stencil and check if correct proertise are set ot not.
    Once you have made the changes at server level please restart the server again and then please let us know if this problem exist or not, may be we can more troubleshoot it further.
    Thanks and Regards
    Praful.

  • Sharepoint 2013 designer workflow mail not sending

    Hi
    I am doing sharepoint 2013 workflow for mail sending  using designer.
    I am sending mail when new item created in List.
    Here status is completed, but mail not sending the following error comes
    "The e-mail message cannot be sent. Make sure the e-mail has a valid recipient".
    But i have valid email ID.
    If i am sending mail through C# (Visual Webpart), mail sending properly.
    Give me solution, Thanks in advance

    Can you please check the below threads
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/3c76459c-01f5-4d75-be17-ee5b2ce1c1dd/sharepoint-designer-2013-workflow-not-sending-emails?forum=sharepointgeneral
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/caee58c6-3128-4241-92e2-62f1d0bff01f/sharepoint-workflow-not-sending-e-mail?forum=sharepointcustomizationlegacy
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answeron that post andVote as Helpful

  • Extended Notification not working for Dialog Task with agent assignment

    Hi Friends,
    I have an issue where I have a user decision step and a sub workflow contains a dialog task with agent assignment.
    Extended notification is configured properly and is working properly for user decision step but its not working for the dialog task created as an activity.
    Batch jobs are configured to run report SWN_SELSEN.
    I was checking SDN and found this discussion handy :
    http://help.sap.com/saphelp_nw73ehp1/helpdata/en/4f/3bed495cc018c8e10000000a42189e/content.htm
    One thing that wonders me is that notifications show up in SOST 4-5 seconds before the user decision step starts execution.
    See screenshot from SOST and WF log.
    SOST log :
    2 questions here: Why is notification not being sent for Dialog task?
                              Why is user decision notification being sent that early even before the User decision task starts execution?
    Please provide your valuable inputs.
    Regards,
    Sandip

    An activity step with agents is supported by the extended notifications if it is a decision task or not, I have used it many times and it works well just no approval/rejection links if it's not a decision task.
    From your screenshot you can see that a mail has been created and is found in SOST, usually this cases are problems with the mail server or connection to it, check the mail settings in the SMTP node in transaction SCOT, also check with mail server team if there is a block to/from the SAP server.

  • Link is not working for one role. how to check please guide.

    Hi Expert,
    I have a simple question but as don;t aware of some of the techincal area not able to understand where to check.
    I have a link under document flow in offer( opportunity) where for one role sales support user the link is not happening. I have checked for other role its working fine.I understand that for this role the link  will not work as per the role maintianed.
    But where this link got maintained and how i will be able to check which link is tagged to which profile.
    rolewise mappeing with link.
    Please guide.
    Prem.

    Hello Prem,
    Please check the navigation bar profile from your business role.
    Then go to the navigation bar profile settings, you can find the details settings there.
    If it is a link under some work center, you need to start from the work center.
    If it is a direct link, then start from the derect link group.
    Hope this could be helpful.
    Best regards,
    'Maggie

  • CL_BCS Mail not send for CC

    Hello Experts,
    I am sending the notification email in CRM using cl_bcs class and this mail should be send to "TO" and "CC" of this i am using add_recipient method of cl_bcs.
    *     Add  TO recipient with its respective attributes to send request
    l_recipient = cl_cam_address_bcs=>create_internet_address( l_addr-e_mail ).
                              CALL METHOD l_send_request->add_recipient
                                EXPORTING
                                  i_recipient = l_recipient
                                  i_express   = abap_true.
    *     Add CC recipient with its respective attributes to send request
                               l_recipient = cl_cam_address_bcs=>create_internet_address( l_addr-e_mail ).
                              CALL METHOD l_send_request->add_recipient
                                EXPORTING
                                  i_recipient = l_recipient
                                  i_copy      = abap_true.
    Now when the "TO" and "CC" email id are different then it work fine. But issues comes when "TO" and "CC" email are same then it sends the email only to "TO". In SOST also i can see only one entry. I think it somewhere check if TO and CC emails are same then it delete the entry OR is there any attribute i need to set so that mail can be send for this scenario.

    Hello Hemant,
    If you test with the BCS example program BCS_EXAMPLE_4, you can see that
    duplicate recipient will be removed.
    This is a standard behavior.
    Thanks & Regards,
    Rajesh

  • Workflow mail not triggering for PO's to the Manager

    Dear Seniors,
      I am creating a PO and keeping in hold and later on saving the PO. But for those kind of PO's, the manager is not getting the mail for approval. But if i create a PO without keeping in hold with same data, system is triggering the mail to the manager. Why is it so? how can i make the settings to trigger the mail for hold-saved PO's. Please guide me.
    Regards,
    Prasath J

    Hello Prasath,
    Please check your configuration on ERP/ECC
    side in transaction SWETYPV. Here you can enable or disable the
    event type linkage for BUS2012 and for CL_SE_PUR_PO_WF_OUT or any
    customer-specific business object related to Purchase Orders which might
    be in use. If you disable the event linkage for CREATE and/or change
    event, no message will be triggered upon PO creation.
    If this is not sufficient for your business process the usual logic is
    that all Purchase Order message are being sent out when the event
    linkage is active (e.g. you want to send out only some of the message
    types possible). In this case you might want to make use of BAdI
    PUR_SE_PO_INTERFACE_OUT_SELECT (enhancement spot / BAdI)."
    Enhancement Spot: PUR_SPOT_SE_PURCHASE_ORDER
    BAdI Definition:  PUR_SE_PO_INTERFACE_OUT_SELECT
    Interface:        IF_PUR_SE_PO_IF_OUT_SELECT
    BADI definition   PUR_APPL_SE_POCONF_IN_ASYN
    Also in the standard, for the following messages
       PurchaseOrderChangedInformation_Out
       PurchaseOrderERPRequest_Out_V1
       PurchaseOrderERPConfirmation_Out
    we are sending out these information as soon as a purchase Order is
    created. We do not distinguish between the services all of them will be
    triggered.
    Hope this hepls
    Ray

  • Workflow is not sending emails

    Hello  everyone!
    I've created a workflow that sends emails on status change of a sales order. Everything works fine in development system, but emails is not sent in QAS system. Workflow is not returning any errors and works as expected but in SOST transaction there is no email processing. What I am missing here? Maybe some configuration?
    Configuration of the workflow is the same as in development.
    System is SAP CRM 7.0
    Regards, Alex.
    Edited by: Alexander Milshtein on Jul 22, 2011 7:55 AM

    Hi,
    First check if it is even possible to send emails.
    from anywhere in SAP just go to system-->short message
    Then send it as a mail (I'm not sure if you should use remote, or internet address I'm guessing internet)
    Then check if a mail was created at all.
    Kind regards, Rob Dielemans

  • Workflow is not visible for a list in an app in SharePoint 2013

    Hello All,
    I have created an app in SharePoint 2013 and added a basic workflow in this app.
    Though the solution gets deployed successfully, workflow is not visible in list --> Workflow Settings.
    Has anyone faced this kind of issue in SP 2013 App ? Please provide your inputs to resolve this issue.
    Thanks.

    Hi Supratim,
    I would suggest you that you try to analyze the workflow log and see where the workitem goes exactly.
    See if the workflow goes into error or if the workflow gets routed to the wrong agent.
    Also let us know how the agent determination is being done?
    Is it been done using rule or is it static agent assignment?
    Regards,
    Raj

  • Samsung Charge:  ringtone notification not working for email

    I have had my Charge for about a month, and really like it.  However, I cannot get a ringtone notification to work for email.  I've followed the steps in guide- what suggestions do you have?  Thanks.

    We can help you resolve your ringtone concerns. We do need some more details about your issue. What difficulty are you having in assigning the ringtone? Does it give you an error when you try to pick the ringtone, or does it allow you to assign it but when the phone rings doesn't work? 
    What have you tried? Have you pulled out the battery? Have you tried another ringtone? Are these stock ringtones or are they downloaded? 
    Please reply with some more details, and I'm sure we'll get you on a path to resolution. 

Maybe you are looking for

  • Widget insertion not working DW CS5 Mac

    I've got a template open and am trying to insert the JBuilder Accordian widget.  I've done all the necessary processes to download the widget from Adobe and put it into my "My Widgets" in the browser.  I click on Insert / Widget and get nothing, no d

  • Unable to view some datasources  in CRM

    Hi Friends I am unable to see the following extractors 0BPARTNER_TEXT How to find this datasource and activate it. It is not availabel in RSA5. Please help me. Regards sundaresan

  • Running Off AC Power

    I typically use my MBP while it's plugged in to the AC adapter. Is it harmful to the battery to leave it inserted while I run off of AC power? I don't want the battery to prematurely give out because I've constantly had it plugged in. My iBook's batt

  • TS3276 Mail not working

    I'm using Mail on MacBook Pro.  For the last two days the system is no longer accepting my Yahoo! password.  I can access email through the internet but not using Apple's Mail. Is anyone else having this problem?

  • Will Blackberry release a new version of Pearl series?

    I love my Pearl 9100. Very slim and easy to type, with its half qwerty keypad. Will Blacberry launch this kind of Pearl series again? Because the current one cant keep up with the latest application version. Please kindly consider it... :-)