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.  repeat a function X time in a playbook

    Posted Thu July 18, 2024 07:19 AM

    Dear Community, 

    I was wondering if there is a way to repeat a function (or any part of a playbook) for X amount of time.

    X can be based on anything like a filed or a variable I set in a script.

    If you are wondering what I will use this for, my goal is to create X amount of Incidents using the create an incident function from Incident utilities. unfortunately I can't know X value before running the playbook.

    Thanks.



    ------------------------------
    mohamad islam hamadieh
    ------------------------------


  • 2.  RE: repeat a function X time in a playbook

    Posted Fri July 19, 2024 02:25 AM

    Up ^^  :)



    ------------------------------
    mohamad islam hamadieh
    ------------------------------



  • 3.  RE: repeat a function X time in a playbook

    Posted Fri July 19, 2024 07:17 AM
    Edited by Mohamad islam Hamadieh Fri July 19, 2024 07:26 AM

    For future references this was actually achievable : 

    you need to create some counters (as an incident fields ) and return the part you want to loop through to the condition point , then break out of it to an end point if the counter has reached zero , below is the playbook , reply to this if you needed any help.



    ------------------------------
    mohamad islam hamadieh
    ------------------------------



  • 4.  RE: repeat a function X time in a playbook

    Posted Mon February 03, 2025 09:41 AM

    Hi Friend :)

    I want to know about this as I want to use it for LogRhythm API, mind sharing the full details ?



    ------------------------------
    abd el rahman Hamed
    ------------------------------