IBM QRadar SOAR

IBM QRadar SOAR

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Adding field content to helper.createRichText command.

    Posted Wed May 27, 2020 05:52 AM
    Hi,
    We are are generating a pre-filled rich text field to use a precheck for general communications and would like to have this field populated with incident properties too. 

    For example

    comms = helper.createRichText("<p>X have invoked a Bridge call (incident.properties.bridgecallnumber) to coordinate actions<p>")
    incident.properties.comms_preview = comms

    I know the above script won't work and I can't to use the + operand to add the properties field outside of the createRichText helper as it says unsupported operand type. Does any one have any ideas on the best way to achieve this?
    Cheers

    ------------------------------
    Leon Goodwin
    ------------------------------


  • 2.  RE: Adding field content to helper.createRichText command.

    Posted Wed May 27, 2020 12:56 PM
    Edited by Jared Fagel Wed May 27, 2020 12:56 PM
    Hi @Leon Goodwin,

    Have you tried like:
    string = ​"<p>X have invoked a Bridge call " + str(incident.properties.bridgecallnumber) + " to coordinate actions<p>"

    incident.properties.comms_preview = helper.createRichText(string)


    ------------------------------
    Jared Fagel
    Cyber Security Analyst I
    Public Utility
    ------------------------------



  • 3.  RE: Adding field content to helper.createRichText command.

    Posted Thu May 28, 2020 08:16 AM
    Thanks Jared, works perfectly :)

    ------------------------------
    Leon Goodwin
    ------------------------------