Maximo Open Forum

 View Only
  • 1.  Communication template adding all worklogs

    Posted 10-23-2023 23:13

    7.6.1.3

    I am a little newbie to communication template:  Looking for a way to includes all worklogs with "viewable checked" to a communication template. 

    My unsuccessful attempts was able to only add the latest worklog entry.


    #EndUser

    ------------------------------
    Loc Chu
    Peacehealth
    ------------------------------



  • 2.  RE: Communication template adding all worklogs

    Posted 10-24-2023 08:46
      |   view attached

    As far as I am aware, out-of-the-box Maximo doesn't allow for enumeration of child records w/in communication templates (i.e. there's not a way provided to list all work log entries, for example).

    We have worked around this using the following approach:

    1) make up some short of placeholder like #WORKLOG# and add that to the message of your communication template.

    2) add an automation script that runs whenever the message body is updated--this script should look for #WORKLOG#.

    3) if that placeholder is found, the script opens the appropriate MBO set and either builds a list or a table of work log entries and then replaces the placeholder #WORKLOG# with the HTML (list, table, etc).

    I've attached our script--I am definitely on the amateur side of scripting, and so I'm sure others could provide insights about how to do this better...but this approach has worked for us!



    ------------------------------
    Jade Warren
    Great River Energy
    ------------------------------

    Attachment(s)

    txt
    commlog_msg.txt   47 KB 1 version


  • 3.  RE: Communication template adding all worklogs

    Posted 10-24-2023 11:51

    Thank you Jade.  This explains why I'm unable to find a simple solution.  With MAS approaching, there is no need to request IBM to add a simple solution to future updates. 

    Thank you very much for the attachment.  You went be on just answering a question, but also found and provided a solution. 



    ------------------------------
    Loc Chu
    Peacehealth
    ------------------------------