Close RITM when SCTASK is Closed | After Business Rules | ServiceNow

Поділитися
Вставка
  • Опубліковано 17 лис 2024

КОМЕНТАРІ • 15

  • @saravanaprabhu4230
    @saravanaprabhu4230 8 місяців тому +1

    Very good

  • @JulieCatano
    @JulieCatano Рік тому

    I created a business rule with these exact steps, I'm using workflow that is creating additional SCTASKS. Then I create an ad hoc SCTASK (which is not in workflow) and if all the workflow SCTASKS are closed and the last ad hoc task is closed it does not close the RITM. Any idea how to get even ad hoc tasks to close the RITM if it's not in the workflow?

  • @epapra795
    @epapra795 Рік тому

    Line 12 gives count of all all sc tasks who state is in 3,4,7 and in line 7 it gives count of only those sc tasks under current request item. How can you compare those two?

    • @learnitwithprashant
      @learnitwithprashant  Рік тому

      Have you checked the code in description? Check it i am already checking current request item

    • @epapra795
      @epapra795 Рік тому

      But in video it's not there. Code is different

    • @learnitwithprashant
      @learnitwithprashant  Рік тому

      @@epapra795 have you tried description code, i have added there video is just for how you can achieve i am not teaching how to code i am just providing what could be the way to do

    • @epapra795
      @epapra795 Рік тому +1

      Thanks for adding it in description. Kudos for your work

  • @krishnaduggempudi5288
    @krishnaduggempudi5288 10 місяців тому +1

    its lengthy we can simplify this.

    • @learnitwithprashant
      @learnitwithprashant  10 місяців тому +1

      Please share simplified code as well it will help everyone of us

  • @prateektyagi8276
    @prateektyagi8276 Рік тому

    Hi can you please explain when you glide second time on sctask table for the tasks that are in close state you query for all sctasks there is no refrence for request item there may be sctask which are related to other request item which are in close state and if the count for that task is greater then the logic will fail ..I am little confuse please explain

    • @learnitwithprashant
      @learnitwithprashant  Рік тому

      Yeah you can check there as well one more query

    • @prateektyagi8276
      @prateektyagi8276 Рік тому +1

      I just want to know that if i am understanding this wrong…means we have to add that query also to work this br properly?

    • @learnitwithprashant
      @learnitwithprashant  Рік тому

      @@prateektyagi8276 Yes i will add that

    • @prateektyagi8276
      @prateektyagi8276 Рік тому +1

      Thanks and keep it up doing great job👍👍

    • @learnitwithprashant
      @learnitwithprashant  Рік тому

      @@prateektyagi8276 Thanks for your support