AutoSys Workload Automation

 View Only
  • 1.  Autosys Email Template Query

    Posted 13 days ago

    Hi all,
    Hoping you can help. I am looking into email templates in regards to alerting within "Notification Services". As far as my understanding is correct, you can have multiple templates and choose which to use per Job? I can see the option to select these in "Notification Services" but cannot select any. A sample template I can see saved in my install location (CA\WorkloadAutomationAE\autosys\install\email_templates). Main questions are as follows:
    How do I create new templates?
    How do I get these to pull through to be selected on the Web UI?
    Can multiple templates be used on the same Job (IE - Success criteria fires off template A and template B)



  • 2.  RE: Autosys Email Template Query

    Broadcom Employee
    Posted 12 days ago
    Hi Connor,

    You can define only one template for a job, but the template can have
    multiple sections to define the email body and subject based on the outcome
    of the job. One section for each of the SUCCESS, FAILURE, TERMINATED, and
    ALARM outcomes. You can also define the recipients for each outcome using
    the below attributes:

    - notification_emailaddress
    - notification_emailaddress_on_alarm
    - notification_emailaddress_on_failure
    - notification_emailaddress_on_success
    - notification_emailaddress_on_terminated

    Regards,
    *Venkat*

    --
    This electronic communication and the information and any files transmitted
    with it, or attached to it, are confidential and are intended solely for
    the use of the individual or entity to whom it is addressed and may contain
    information that is confidential, legally privileged, protected by privacy
    laws, or otherwise restricted from disclosure to anyone else. If you are
    not the intended recipient or the person responsible for delivering the
    e-mail to the intended recipient, you are hereby notified that any use,
    copying, distributing, dissemination, forwarding, printing, or copying of
    this e-mail is strictly prohibited. If you received this e-mail in error,
    please return the e-mail to the sender, delete it from your computer, and
    destroy any printed copy of it.




  • 3.  RE: Autosys Email Template Query

    Posted 12 days ago
      |   view attached

    Hi Connor,

    I have attached a Broadcom document that was helpful to me in creating templates. Here is a snippet which you may find the most helpful from that attachment: 

    After you have created your template file and saved it, you will need to insert the file into the WAAE
    database as a global blob. To do this, run 'jil' and enter the following at the jil prompts...
    1>insert_glob: template_name (can be any name you want)
    2>blob_mode: text
    3>blob_type: emailtemplate
    4>blob_file: path and filename of your saved template file
    5>exit
    Once the template has been inserted as a global blob, you can now use it in job definitions.

    In regards to not being able to select a template,  - click on the binoculars, in the search box, type "*", and then click "Go". Your sample template should appear, you can select it and click on "OK".

    Hope this helps.

    Corrie




  • 4.  RE: Autosys Email Template Query

    Posted 12 days ago

    Thanks for the above Corrie, I am getting the below error when trying to enter this however:
    CAUAJM_E_50216 Invalid attribute name for <sample_template_CF_20250402>: d (sample_template_CF_20250402 being my test template).
    Had a look on the documentation but can't find anything for this. Not sure if you are aware?




  • 5.  RE: Autosys Email Template Query

    Posted 12 days ago

    Try googling the error message and see if there is some information online. I did and one of the hits was this page, which may be helpful - https://knowledge.broadcom.com/external/article/367784/cauajme50216-invalid-attribute-name-erro.html




  • 6.  RE: Autosys Email Template Query

    Posted 11 days ago

    Figured it out, the structure of my file location was what it didn't like. This is now showing as "Successful" however when I go to check within the Autosys Web UI it shows "Template name does not exist". Do you know if there is a step I am missing (can't find anything on a cursory Google)




  • 7.  RE: Autosys Email Template Query

    Posted 11 days ago

    I'm not sure on that one. Perhaps there is a character in the name that is not allowed. 




  • 8.  RE: Autosys Email Template Query

    Posted 11 days ago

    Yeah it's a little bit strange. As per the Web UI the below is allowed:
    "valid characters are, a-z, A-Z, 0-9, PERIOD(.), UNDERSCORE (_), HYPHEN(-0) AND HASH (#)"
    And my name doesn't contain anything invalid (sample_template_CF_20250402). It's also 37 characters below the limit and does not contain any spaces or indents