ServiceNow - Create Loops in Flow Designer

Поделиться
HTML-код
  • Опубликовано: 2 янв 2025

Комментарии • 11

  • @OneAndOnlyMe
    @OneAndOnlyMe 2 года назад +5

    Tip: when using pill transforms, use the action annotation to describe the pill transform so that for someone else reading the flow, they will know that the Set Flow Variable action is doing a transform (it's not obvious otherwise).

    • @secretaryofsimplification
      @secretaryofsimplification  2 года назад +2

      Fantastic suggestion! But more than that, absolutely necessary. Thanks for the best practice note!

  • @AMServiceNowDeveloper
    @AMServiceNowDeveloper 2 года назад +2

    Great video.
    Please make more videos, love to watch and learn.
    Thanks :)

  • @veeravenkatasmulam2094
    @veeravenkatasmulam2094 2 года назад +2

    But this is not working in sandiago version. I am getting infinite loop. In the Do Loop, setting flow variable, with subtracting -1 is not working as expected.

    • @secretaryofsimplification
      @secretaryofsimplification  2 года назад +1

      I would suggest adding a step after Set Flow Variables to create a log entry, outputting the value of the variable, to confirm its value.

  • @janhavibabbar9922
    @janhavibabbar9922 Год назад +1

    Is it possible to loop over a string array using flow designer in servicenow? It would be great if I can get some guidance on this...

  • @HotTracksDiecast
    @HotTracksDiecast 7 месяцев назад

    Hi, I wonder if you have any ideas how to use low code to make pairs from a list of sysIDs and save them to a match record. ex.
    I have a list of competitors and I'm trying to make pairs to save to a new Match record like racer1 and racer2.
    One way I've been trying is. 1st I converted the list to a string by assigning it to a flow variable.
    then I created an action, and it takes the string and makes it into an array, then I use a script include to create a function where it returns an object like:
    {
    "Result": [
    "{match=1.0, driver1=1, driver2=3}",
    "{match=2.0, driver1=4, driver2=2}"
    ]
    }
    but now I'm trying to use this to create a record on the match table, but I'm having issues with the kinds of data types the flow can use, and I'm wondering do I create a new action step or return it to the flow and try to make a loop or a for each.
    Any help would be appreciated. thanks.

  • @jayshah8271
    @jayshah8271 2 года назад +1

    it is not working for me . I am using san deigo version

  • @rohitchatterjee9360
    @rohitchatterjee9360 2 года назад +1

    Good video