(Day 6)ServiceNow Business Rule | Display Business Rule | Real Time Scenario | Interview Questions

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ย. 2024

ความคิดเห็น • 65

  • @learnservicenowwithravi
    @learnservicenowwithravi  ปีที่แล้ว +2

    Correcting The Script !!!
    (function executeRule(current, previous /*null when async*/) {
    var previousManager=previous.assignment_group.manager;
    var x=new GlideRecord('u_manager_details');
    x.addQuery('u_manager_name',previousManager);
    x.query();
    if(x.next()){
    x.u_manager_name=current.assignment_group.manager.getDisplayValue();
    x.update();
    }
    gs.addInfoMessage("The current Assignment group manager is "+current.assignment_group.manager.getDisplayValue());
    })(current, previous);

    • @ramuchava19
      @ramuchava19 9 หลายเดือนก่อน

      I have a doubt as I have seen many videos that Do not use current.update() before BR. But you are using that x.update.Can you please give clarification on this.....

    • @prasadkumar5707
      @prasadkumar5707 7 หลายเดือนก่อน

      Brother.., You're really amazing. I have never seen ever like this kind of teaching you have amazing stuff👌👌

    • @CricketHighligts-hits
      @CricketHighligts-hits 5 หลายเดือนก่อน

      this code is not working. not going inside the if condition.

    • @manojchitturu1800
      @manojchitturu1800 12 วันที่ผ่านมา

      I tried this updated code only.
      But if I change the assignment group the manager name is not changing.

  • @hiranmayeemohanta5308
    @hiranmayeemohanta5308 หลายเดือนก่อน +1

    Hi Ravi...the way u r teaching scripting, I think everyone will love coding. Finally I found best teacher to clear our basic concept in scripting. Stay blessed always👍

    • @learnservicenowwithravi
      @learnservicenowwithravi  หลายเดือนก่อน

      Thanks a lot for the appreciation 👍

    • @ashaysingh9278
      @ashaysingh9278 10 วันที่ผ่านมา

      @@learnservicenowwithravi bhai working code hai kya, kuchbhi sikhate ho

  • @blah2blah65
    @blah2blah65 ปีที่แล้ว +3

    For "Demo Business Rule Manager Details" BRs you may want to make them "after" because otherwise if the incident insert or update transactions fail later in processing, you will end up with bad data in u_manager_details. I would make them async because I don't need to delay the interface load while I wait on u_manager_details transactions.

  • @sanjuadhikary4652
    @sanjuadhikary4652 ปีที่แล้ว +1

    Finally got a perfect teacher to learn snow.

  • @kumudsingh5784
    @kumudsingh5784 ปีที่แล้ว +2

    Badhiya

  • @imastercast
    @imastercast ปีที่แล้ว +2

    Many thanks for the passion and enthusiasm in your teaching style. Did everything exactly like you explained but the insert fails to work on the u_manager_details table. I'm using the Vancouver release. Any explanation for this?

  • @kavyabethi8546
    @kavyabethi8546 ปีที่แล้ว

    the way ur explaing is too good upload more videos related ITSM and GRC

  • @ramuchava19
    @ramuchava19 ปีที่แล้ว +1

    Waiting bro, please upload every day

    • @learnservicenowwithravi
      @learnservicenowwithravi  ปีที่แล้ว +2

      Its Difficult everyday.. But in a week sure 3-4 videos I will bring

    • @ajitkondekar5954
      @ajitkondekar5954 ปีที่แล้ว

      @@learnservicenowwithravi but now in a week you are uploading only one video

  • @bheemarajuvagu3525
    @bheemarajuvagu3525 ปีที่แล้ว +1

    Hi @Ravi
    Need
    1. Discovery
    2. Service Mapping
    Videos

  • @vengadesha-y9b
    @vengadesha-y9b ปีที่แล้ว +1

    Hi Ravi , In before Videos you said current.update() is not good practice. but we are using here . so we can use the update method inside the block like if , while condition ? please clarify

  • @bheemarajuvagu3525
    @bheemarajuvagu3525 ปีที่แล้ว +1

    Simply super 😊

  • @ramuchava19
    @ramuchava19 9 หลายเดือนก่อน

    👏

  • @mhkrishnan
    @mhkrishnan ปีที่แล้ว

    As usual, great video. 😀
    i think, the video title is not match with content, it is before business rule, but not Display business rule. Please check it and change the title please. Ignore me if i am wrong.
    Thanks for the video. 😀👍

    • @learnservicenowwithravi
      @learnservicenowwithravi  ปีที่แล้ว

      Thanks for feedback and suggestions..In the beginning I used display business rule and after I use real time scenarios..

  • @abhayagarwal1847
    @abhayagarwal1847 11 หลายเดือนก่อน

    Hi Ravi, Thanks for this videos
    To fulfill this requirement of the scenario, cant we use a single business rule i.e. demo business rule manager details by checking the insert and update checkbox and add same condition in the BR to insert the record over two separate BRs for insert and update.

    • @learnservicenowwithravi
      @learnservicenowwithravi  11 หลายเดือนก่อน

      Try it .. there could be potential possibilities if there are two tables then I would have used

  • @zeeshankhan-ci5iv
    @zeeshankhan-ci5iv 2 หลายเดือนก่อน

    Hi Ravi, What is the diff between Business rule under admin and BR under system definition?

  • @vengadesha-y9b
    @vengadesha-y9b ปีที่แล้ว +1

    Also Why we need Business Rule ..can't we do it in one Business rule ? can you please tell me the use of 2 BR ?

    • @learnservicenowwithravi
      @learnservicenowwithravi  ปีที่แล้ว

      Please join the group of mine.. and ask there it will be easy to get the response

  • @Somnath_Snow
    @Somnath_Snow 8 หลายเดือนก่อน

    All good . but the manager table is not updating when a new assignment group is selected in the incident table

  • @saurabhdhiman5690
    @saurabhdhiman5690 11 หลายเดือนก่อน

    Hi Ravi
    I had one doubt here at 12:20, you said we need to check the previous manager. I wanted to know why we are checking for the previous manager?

  • @saigeetha6926
    @saigeetha6926 5 หลายเดือนก่อน

    hi,
    if a user added to group then manager will have to get an email like ,a new user is added to group.
    how can we achieve this by using after business rule

  • @nuhakhangr8
    @nuhakhangr8 11 หลายเดือนก่อน

    TIL how to insert a new record in the manager table
    and also how to update the manager name in the manager table

    • @learnservicenowwithravi
      @learnservicenowwithravi  11 หลายเดือนก่อน +1

      if you more number of data by Using import set add the new record to manager
      or
      individual data can be directly loaded to the tabel

    • @nuhakhangr8
      @nuhakhangr8 11 หลายเดือนก่อน

      @@learnservicenowwithravi interesting 🤔

  • @ajaybasavaraj2849
    @ajaybasavaraj2849 2 หลายเดือนก่อน

    After update in incident table it is not updating in manager table? I am facing this issue please help me with it

    • @learnservicenowwithravi
      @learnservicenowwithravi  2 หลายเดือนก่อน

      Your script??

    • @ajaybasavaraj2849
      @ajaybasavaraj2849 2 หลายเดือนก่อน

      (function executeRule (current, previous /*null when async*/ ) {
      var previousManager = previous.assignment_group.manager;
      var x = newGlideRecord('u_manager_details');
      x.addQuery('u_manager_name', previousManager);
      x.query();
      if (x.query()) {
      x.u_manager_name = current.assignment_group.manager.getDisplayValue();
      x.update();
      I
      }
      gs.addInfoMessage('The Current assignment group manager is + current.assignment_group.manager. getDisplayValue());

  • @mochansolanki735
    @mochansolanki735 ปีที่แล้ว

    Taking 'after' condition below code is not working-u_profile is a customer field pointing sys_user.Table is incident
    (function executeRule(current, previous /*null when async*/ ) {
    if (current.u_profile == current.caller_id) {
    var gr = new GlideRecord('sys_user');
    gr.addQuery('sys_id', current.u_profile);
    gr.query();
    while (gr.next()) {

    current.short_description =gr.email;
    gs.addInfoMessage('Email of the user: -' +gr.email);
    }
    }

  • @ramachandrareddydondeti7675
    @ramachandrareddydondeti7675 2 หลายเดือนก่อน

    Group link not working

  • @joyKarmakar-n2d
    @joyKarmakar-n2d 10 หลายเดือนก่อน

    th-cam.com/video/JFwu0KsYy4w/w-d-xo.html

  • @sachinsolapure7737
    @sachinsolapure7737 7 หลายเดือนก่อน

    Bro plese go slowly plese

  • @Dolly24522
    @Dolly24522 9 หลายเดือนก่อน

    How do you create that watermark field in incident table?

  • @ashaysingh9278
    @ashaysingh9278 10 วันที่ผ่านมา

    no clarity in the video

    • @learnservicenowwithravi
      @learnservicenowwithravi  วันที่ผ่านมา

      Thanks for the feedback.. tell me what you don’t understand

  • @tubosunakinbo1165
    @tubosunakinbo1165 5 หลายเดือนก่อน +2

    I treid it but got the sys_id which is the current assignmenta8f98bb0eb32010045e1a5115206fe3a,what can i add to make the name show instead of the ID.Please

  • @sal-ju7bl
    @sal-ju7bl 7 หลายเดือนก่อน

    I watched most of your videos and they are easily understandable this one i did not get it. specially from the table. u_manger_details. i would say its better to use table whatever already exist in sn and zooming where you typing would increase the video quality, just a suggestion.thanks

    • @learnservicenowwithravi
      @learnservicenowwithravi  7 หลายเดือนก่อน

      Thanks for the suggestion.. I don’t edit the videos so its raw footage.. I will keep in my mind

  • @jonasappau9555
    @jonasappau9555 ปีที่แล้ว +1

    Hi @Ravi what’s the WhatsApp number for me to join the group cos when I click on the link it doesn’t take me directly to the group even though I have WhatsApp installed