Email Template in OIM API

Hi All
I wanted to send an email using an email definition that i already created through Design Console.
is there any API that uses the email template to send mail in the custom code.
instead of we hard coding everything in the code.
Thank you
sas

Hi,
You can construct and send email with the email defintiion like this:
tcEmailNotificationUtil emailNotificationUtil = new tcEmailNotificationUtil ();
emailNotificationUtil.constructEmail(emailDefintiionName);
emailNotificationUtil.sendEmail(EmailAddress);
Regards,
Dharan

Similar Messages

  • Sending email notification  using email template in OIM 11g

    HI all
    I want to send an email to the user in OIM 11 g using API's
    I have created a email template using oim 11g's design console.
    now i want to access that email template from design console and send mail to user.
    previously in OIM 9i there was class com.thortech.xl.dataobj.util.tcEmailNotificationUtil;
    which was having utilities method like send-email etc.where we were able to access the email template from design console and send mail to user.
    I want such API's to send mail to user in OIM 11g.Iam unable to find the tcEmailNotificationUtil class in OIM 11g;
    Thanks in advance
    Bipin patil

    Thanks kuldeep
    I have one single question,.
    I have gone through the 11g docs but it is not present in the oim 11g docs any reasons for it .

  • Sending email to user using the notification template in OIM 11g

    Hi all
    I have created a Notification Template using web console in OIM 11g.
    Iam able to access the contents from notification template in my java code.
    But iam not able to find the correct api's to send email to user using the notification template
    (like tcEmailNotificationUtil using this class we can connect to email template created in design console and creating IT resourse we can send email to user using the method sendEmail).
    Waiting for your help and pointers
    Thanks and Regards
    Bipin patil

    Thanks GP!.
    But i have the same doubt here.
    "The Notification Event is defined through a XML file that must be loaded into MDS database." - in which path and in what name it should be.
    Because under /metadata/iam-features-notification, i couldnt see any event Xml present. I thought atleast we could see the existing OOB notification template's event xml files.
    Please let me know if you are aware.
    Thanks,
    Amudha

  • OIM 11g: Email template - child table columns

    Hi All
    How can I fetch the child table (process form child table) columns in the OOTB email templates. When I select Process form data on the email definition screen on Design console, I am only able to select the main process form's columns.
    Please help. Its urgent.

    OOTB not possible you have to write code for fetching child data.
    I suggest send mail using custom code and fetch child data using OIM APIs.

  • OIM Email notification in Provisioning Related Type in Email Template

    Hi,
    I have done the Email Notification for the RequestRelated type in the EmailTemplate where a Resource is granted to a user and the mail goes to a particular User or Group in the Assignment Tab of the Process task. Its ok.
    Now I want to do for the Provisioning related type specified in the Email Template.I tried to attach my Mail Template in the provisioning task related to a particular Resource but mail is not generating .
    Can anyone briefly tell me How to generate mail for the Provisioning Related type ?????

    Have you attached the email definition in the Notification tab of the provisioning task?
    Also, you need to be sure if the task status was reached to start the email notification.
    Regards,
    Nitto

  • Error while entering Long message in Email Template

    Hi All,
    While Creating Email template with 28 kb data as Long message field in OIM 11g R2 Im getting error like "Invalid size of inputs in en_US in Locale  " so unable to save and please provide the solution Is there any changes in property or something?
    Thanks
    Kowsalya

    Yes that is right what is mentioned above, first you give the company code and name then give the currency then select address (Shift+F5) and in that if you select country as IN then it will automatically come to master data.
    Edited by: venkata986 on Aug 31, 2010 12:31 PM

  • Disable Notification template in oim 11g

    In OIM 11g there are a set of notifications under system management(advanced tab in admin console). How do you disable an email notification without deleting the email template?
    Thanks.

    http://docs.oracle.com/cd/E21764_01/doc.1111/e14308/system_props.htm#BACGIDCH
    Property: Recon.SEND_NOTIFICATION
    Re: [OIM 11g] OOTB Email Notification
    -Bikash

  • How to set password on email body in custom Email Template

    Hy,
    I have a Email Template customized in Email Definition>Design Console.
    I need send this 'Email Template' with the password user, but I don't know how to set the variable 'password' in the body of email.
    I searched in Varables>Targets>Variables, but I not found any think variable like password.
    Some has a idea about this? How to set password on email body?
    Regards,
    Piza

    You can use custom Java code. Refer the following:
    Email notification to users after they change their OIM password

  • Creating self registration request using OIM API

    Hi guys,
    When we try to create a self regisrtation request using OIM API , we ge the following exception:
    We get this error when we set the following in Design console.
    Does user have to provide challenge information during registration = FALSE
    and passed an blank object in place of challenge question parameter in createSelfRegistrationRequest method in tcUtilityBaseClass.
    19:22:17,218 ERROR [REQUESTS] Error: Failed to save REQ_CONSOLIDATED_DATA_VALUE
    data for Create Entity.
    java.lang.NullPointerException
    at org.apache.xml.serializer.TreeWalker.dispatachChars(TreeWalker.java:2
    44)
    at org.apache.xml.serializer.TreeWalker.startNode(TreeWalker.java:414)
    at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:143)
    at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
    ormerIdentityImpl.java:389)
    at com.thortech.xl.dataobj.util.RequestDataConsolidator.convertNodeToXML
    (Unknown Source)
    at com.thortech.xl.dataobj.util.RequestDataConsolidator.addUser(Unknown
    Source)
    at com.thortech.xl.dataobj.tcDataBase.createRequestForCreateEntity(Unkno
    wn Source)
    at com.thortech.xl.dataobj.tcDataBase.createRegistrationRequest(Unknown
    Source)
    at com.thortech.xl.dataobj.tcDataBase.createRegistrationRequest(Unknown
    Source)
    at com.thortech.xl.ejb.beansimpl.tcUnauthenticatedOperationsBean.createR
    egistrationRequest(Unknown Source)
    at com.thortech.xl.ejb.beans.tcUnauthenticatedOperationsSession.createRe
    gistrationRequest(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
    tatelessSessionContainer.java:237)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
    ke(CachedConnectionInterceptor.java:158)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
    elessSessionInstanceInterceptor.java:169)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
    Interceptor.java:63)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
    rceptor.java:121)
    How do we create a self registration request , using OIM API , with and without challenge questions?

    Well try this piece of code. This might be similar to yours but it worked perfectly for me. For you the error might be the attribute names which you are passing, it should be the one dfined in the FormMetaData xml as below.
         import Thor.API.tcUtilityFactory;
         // define you class below
         ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
         final Hashtable env = config.getAllSettings();
         Hashtable quesAns = new Hashtable();
         HashMap user = new HashMap();
         user.put("Users.User ID", "SelfTesting");
         user.put("Users.First Name", "SelfTesting");
         user.put("Users.Last Name", "SelfTesting");
         user.put("Users.Email", "[email protected]");
         user.put("Users.Password", "SelfTesting");
         user.put("ConfirmPassword", "SelfTesting");
         tcUtilityFactory.createRegistrationRequest(env, user, quesAns);
    And for the query of challenge QnA, these are the following combinations possible:
    1) Property Does user have to provide challenge information during registration set to TRUE
    - During self-registration from web console, it will show you Challenge Questions section on the right. If you do not select any questions, it will thow you an error there itself.
    - Doing it from API will create no difference(even if you pass a blank HashTable). The request will be created successfully and on completion when the user tries to login, it will ask for Security QnA.
    2) Property Does user have to provide challenge information during registration set to FALSE
    - During self-registration from web console, it doesn't show you Challenge Questions section on the right. The request will be created successfully and on completion when the user tries to login, it will ask for Security QnA.
    - Doing it from API, you will have to pass a blank HashTable as in above code. The request will be created successfully and on completion when the user tries to login, it will ask for Security QnA.
    Hope it works.
    Thanks
    Sunny

  • Email Template issues

    Hi Gurus,
    IHAC who has a Provisioning Account Complete email template assigned on Notification tab for Create User task.
    The email template is a Provisioning Related type and they are using some Requested Related tags.
    At the Recon events, after createUser task is complete the email has been sent as below.
    No information is got from OIM and the tags are displayed. The customer needs to have login information sent by email.
    Is anything wrong?
    SUBJECT
    OIM - Solicitação (AD RedeCorp) <Request Information.Request ID> - Sucesso no aprovisionamento do usuário <User Profile Information.User Login>
    BODY
    Prezado Gestor,
    A conta do funcionário no <Object Information.Object Name>, foi criada com sucesso.
    Abaixo os dados para acesso.
    Nome: <User Profile Information.First Name> <User Profile Information.Last Name>
    Usuário: <Process Data Information.User ID>
    Senha: <Process Data Information.Senha Email>
    Em caso de dúvidas, entre em contato com a Central de Serviços através do ramal 1111 ou via celular pelo *1111.
    TiA,
    Carlos

    Thanks Kevin for the prompt reply.
    In this case, Should not the tags for request data be displayed in blank?
    Another question: Do not the tags below work for account provisioned thru recon event?
    Nome: <User Profile Information.First Name> <User Profile Information.Last Name>
    Usuário: <Process Data Information.User ID>
    Senha: <Process Data Information.Senha Email>
    Thanks again,
    Carlos
    Edited by: user12295533 on May 10, 2011 2:52 PM

  • How to Create Resource Object in OIM through SQL queries or OIM APIs

    Hello,
    I have to create few (100) resource Objects in OIM. I was creating manually through Design console one by one. In future we might need to create many more Resource Objects .It takes lot of time if we do it through Manually.
    Is there any possiblity we can create Resource Objects through SQL query or OIM APIs ???
    Thanks!!

    Yes. I do it all the time.
    If you are using 11G 11.1.1.3
    Go here
    http://fredforester.org/code/xmlstarters/
    Download the files.
    RESCFORM.xml is an example resource built from the template
    buildtemplate.sh is a shell script that creates a resource from the template
    index.php - you dont need this
    templateresource.xml - this is the template resource. it was created by building a simple resource with all its basic tasks and components then editing it and renaming things so I can find them with sed
    to create Resource C you would
    ./buildtemplate.sh RESCFORM "Resc Resource" "Resc Process"
    you would end up with a file called RESCFORM.xml where when imported would have
    UD_RESCFORM
    Resc Resource Resouce Defintion
    Resc Process Process Defition with basic tasks pointing to a dummy adapter.
    You can optionally create your own prepop so it will get assigned to the form when you import.
    Good luck

  • Amazing OIM API documentation

    Hi,
    I need the OIM API documentation but for version 11.1.1.3? Is it available? I can give my email adress to send me a link.
    We need to know how to create Authorization Policy from API.
    best
    mp

    Hi,
    You can get all API docs here:
    http://docs.oracle.com/cd/E23549_01/apirefs.1111/e17334/allclasses-noframe.html
    Refer authorization services for your requirement:
    http://docs.oracle.com/cd/E23549_01/apirefs.1111/e17334/oracle/iam/platformservice/api/AuthorizationService.html
    regards,
    GP

  • Can no longer select text in email template or read only field with mouse using IE or Firefox?

    Hi Guys,
    I can no longer select text in email template or read only field using my mouse in IE or Firefox anymore. We are using CRM 2011 rollup 18 applied with IE 11 and the latest version of Firefox. We only applied roll up 18 in Feb when this issue began.
    Thanks
    Dave
    David Kelly

    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    (You also can clear Firefox's cache completely using:
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now")
    (2) Remove the site's cookies (save any pending work first) using either of these. While viewing a page on the site:
    * right-click and choose View Page Info > Security > "View Cookies"
    * Alt+t (open the classic Tools menu) > Page Info > Security > "View Cookies"
    Then try reloading the page. Does that help?
    These features rely on JavaScript, and it sounds as though you have scripting enabled if you get (the wrong) color changes. Some add-ons might alter the way scripts operate, so a standard diagnostic to bypass interference by extensions (and some custom settings) is to try Firefox's Safe Mode.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [[Backing up your information]]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in Firefox's Safe Mode ([[Safe Mode]]) using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode."
    If those features work correctly, this points to one of your extensions or custom settings as the problem.
    To also disable plugins, you can use this page:
    orange Firefox button ''or'' classic Tools menu > Add-ons > Plugins category
    Any change?

  • I would like to find out how I can setup my Mac Air to allow me to have an email template open up in Outlook instead of Mail when I click on an email address on a website.

    Can anyone help me with setting up my Mac Air, to allow me to have an email template open up in Outlook instead of Mail when I click on an email address on a website?

    All the limits you mention 100 e-mails at a time and 500 in a four hour time frame are limitations imposed by your mail provider, not Thunderbird. Thunderbird places no restrictions on the maximum number of recipients.
    Have you tried turning your computer off for a few minutes?

  • Problem with links on email templates

    Problem with links on email templates
    Hi,
    We have been having issues with links on our email templates. Some of the links point to the following URL:
    http://server'sname/thirdparty/FCKeditor/editor/fckeditor.html?InstanceName=emailTemplatesDTO.htmlBody&Toolbar=NewscaleFCKEditorToolBar#URL
    Sometimes we get “Unknown internal error” on the web page.
    Can anyone help or advise on how to resolve this issue?
    Many thanks,
    Wesley.

    Hi Wesley,
    This is rather late, but we've seen the same thing frequently (and I believe can replicate it).  It's caused when you a creating a new email by copying the content of an existing one with a name space in it.
    Upon copying, the link gets scrambled.  The approach we use is to copy the email in to a new template, then strip out all of the URL links and add them back in.
    Thanks!
    Ant

Maybe you are looking for

  • How do I create an on the go playlist on my touch screen nano

    I don't have a computer at the moment and would like to create an on the go playlist. On my old nano I could do this by pressing the centre button. On my new nano touch screen I just can't seem to do it! Any help please.

  • Why can't I sync a playlist with only podcasts in it (to my IPHON4)?

    Made a playlist with specific podcasts in it. (my weekly show series I like to listen to) But, it will not sync the podcast shows. It seems like I can only sync the 10 or 5 or xx latest shows. Seems kind of dumb that I can't create a list to be able

  • JNDI-Tomcat 5.5.17, Cannot create JDBC driver of class '' for connect URL '

    I wrote a jsp program using JNDI to get connected to MySql DB, but i got the error " Cannot load JDBC driver class 'com.mysql.jdbc.Driver' " while running the program. I'm using NetBean5.5 which has bundled TomCat5.5.17. I've refered to many tutorial

  • Add new bank account in master data client with idoc DEBMAS.

    Hi friends, I have an issue. I am trying to add new bank account in master data client with idoc DEBMAS. But when I submit, then just overwrite the bank data but not add. I try playing with MSGFN code with value '009' or '004' but nothing done. Someo

  • OC4J hangs when accessing ADF DataPage

    My application was working and all of a sudden, when I try to hit a DataPage accessing a table (Read Only on the JSP side) it hangs. If I try to hit any page after that using the same session is hangs up also. After debugging and stepping through a l