Define a new Class Script Include (use case)

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

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

  • @MultiRick15
    @MultiRick15 2 месяца назад +1

    Very well explained Pritam! Wonderful!

    • @techwithpri
      @techwithpri  2 месяца назад

      The pleasure is all mine 🤓..Keep watching and keep learning 👍

  • @LouieTheBluey
    @LouieTheBluey 10 месяцев назад +2

    At 17:27 of your video, how did you toggle the column names next to their column labels? It seems you may have pressed a shortcut key. Can you elaborate on that, as this can be very useful.

    • @techwithpri
      @techwithpri  10 месяцев назад

      Hey !!
      So this is plugin that I am using in chrome browser 🤓
      Check the video to understand in better way -
      ruclips.net/video/8nC0t4PH7mw/видео.html

  • @TechieDoctor
    @TechieDoctor 4 месяца назад

    Sir your video is so informative

    • @techwithpri
      @techwithpri  2 месяца назад

      The pleasure is all mine 🤓..Keep watching and keep learning 👍

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

    Hi @TechWithPri, i am your new subscriber and your videos are really helpful, thanks for sharing knowledge.

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

      The pleasure is all mine 🤓..Keep watching and keep learning 👍

  • @shaziyasultana3703
    @shaziyasultana3703 5 месяцев назад

    Great session pritam , thank you

    • @techwithpri
      @techwithpri  5 месяцев назад

      Glad you liked it!! Keep watching and keep learning 😁

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

    i have a JS related question ,
    You are returning pTask and gMember in both the functions , while calling methods and getting updated in the description fields, are they not supposed to come up as [ticket1, ticket 2] ? where are the square brackets ?

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

      Hey !!
      Its not coming as a square bracket because ServiceNow has a limitation where it automatically converts arrays to strings when returning them from server-side scripts. This means your array is being converted to a comma-separated list of values without square brackets.

    • @chellamarudhupandianc3617
      @chellamarudhupandianc3617 Год назад

      thanks for the clarification :) @@techwithpri

    • @techwithpri
      @techwithpri  Год назад

      @@chellamarudhupandianc3617 Always welcome 😃

    • @Kannavolgs37
      @Kannavolgs37 Год назад

      if it is used in client side its working array to string automatically@@techwithpri

  • @swapnilghodekar3781
    @swapnilghodekar3781 Год назад

    Hi Pritam, What to do to see all the field as well as related list table sys-id on form

    • @techwithpri
      @techwithpri  Год назад

      Yes for that you have to return JSON Array containing JSON Objects.
      And in detail I have shared the procedure with use case in my new video JSON Object and Script Include.
      Do check it out and let me know 😄

    • @swapnilghodekar3781
      @swapnilghodekar3781 Год назад

      ​@@techwithpri Sorry I put my question wrongly,
      i mean to say you do something on form and you get all the beckend values of field and related-list.
      i want to know how you do that

    • @techwithpri
      @techwithpri  Год назад

      @@swapnilghodekar3781 First you can send reference field value (ex: caller_id) as sysparm variable to the script include and then store all the value in a object form and push to an array then return the array in client and place accordingly.
      For Related field you may need to deal with another function on the script include end.
      Check my next video for more detail..

  • @ThiagoRochaPereira
    @ThiagoRochaPereira 3 месяца назад

    Very informative video!
    However, two points should be avoided due to good practices:
    1) Never use gr as the name of a GlideRecord
    2) To get field values ​​we must use the getValue method and to set the value of a field we must use the setValue method.

  • @RamachandraReddyDondeti
    @RamachandraReddyDondeti 2 месяца назад

    When I selected assignment group as service desk I want only this group user name has to display when I clicked on caller field on change request
    how can i do ,
    please suggest me

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

      Hey 👋
      That does not make any sense !! 😅
      Although you can do it by changing the reference qualification on the caller field.

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

    Hey Pritam, you are the best. I have my developer certification next week and these videos are helping alot. Do you have any sample questions or extra review for the certification besides the videos? Thank you for all the help!

    • @techwithpri
      @techwithpri  6 месяцев назад +1

      Hey 👋
      I am glad that my video is helping you to clear your concept 😇
      The CAD questions video is coming on August First week 😔

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

      @@techwithpri oh man 😓 are there any recommended links or sources you know are good to look at it?

    • @MoeGriffin
      @MoeGriffin 5 месяцев назад

      @@techwithpri Hello Pri? Have they been uploaded yet? Thanks in advance you are truly a life saver.

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

    what is the shortcut to get the table name ?

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

      Hey 👋
      If you have sn_utills plugin installed in your browser, just double click in blank area in a list or form view 🤓

  • @bhargavky
    @bhargavky Год назад

    Hi Pritam, All your videos are superb and very helpful. Please do videos on integrations, that would be helpful.