How to populate Catalog Item Variables on Notification using Mail Script in ServiceNow

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

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

  • @stephenlawal4860
    @stephenlawal4860 2 года назад +4

    Just what I need, straight to the point. Thanks

  • @menahemglobus3006
    @menahemglobus3006 9 месяцев назад +1

    Thank you. This was a perfect lesson.

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

    your videos are Awesome!! I learn a lot with you!

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

    A big thanku man.....
    Thank u very muchhhh...
    You made this so easy....

  • @lostrifles
    @lostrifles Месяц назад

    Can you do this from other tables? like use sysapprover Table but fields from RITM?

  • @bhagwatvaishnavi
    @bhagwatvaishnavi Год назад +2

    Can i do the same thing on Approval table?

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

    Can I know how to get the value for the check box variable by using email script

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

      Example:
      If you have a check box variable.
      Question(Label) - Adobe Photoshop
      Name(Backend value) - photoshop
      Email Script:-
      var getPhotoshop = current.variables.photoshop.getDisplayValue();
      //Checkbox will return true/false(Boolean).
      if(getPhotoshop){
      template.print('Adobe Photoshop is Selected');
      }

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

      @@AMServiceNowDeveloper What if I had a choice feild for that how can I call a variable by using the email scripts.

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

      @Srinivasa rao
      Example:-
      In Gender(u_gender), Male(male) and Female(female) choices are there.
      If user selected Male in Gender field.
      You will get like.
      Var selectedByUser = current.variables.u_gender;
      You will get selectedByUser = male.

    • @srinivasarao2965
      @srinivasarao2965 2 года назад

      @@AMServiceNowDeveloper thank you helped a lot

    • @srinivasarao2965
      @srinivasarao2965 2 года назад

      @@AMServiceNowDeveloper I need a another help which is out of email script.
      The requirement is how to change a date format for particular date feild in a form.

  • @ArnaldoFernando-s4o
    @ArnaldoFernando-s4o Год назад +1

    It works! Thanks

  • @maksympt1
    @maksympt1 Год назад +3

    I think that works from the notification as well - just typing ${variables.u_state} or ${variables.u_requester_name} would bring back the result (even though it's not in the field picker).

  • @GruntMike17
    @GruntMike17 6 месяцев назад

    You could just have done ${variables.u_requester_name} directly in the email notification