Community Live Stream - API Adventures - API Model

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024
  • Join Chuck as he guides you through the layers of places you can script on the Now Platform and how they can be connected. He'll help you reduce development, test, and upgrade time. Learn the relationships between Service Portal and scripted REST APIs, client scripts and script includes, and more.
    Episode topics include:
    * Script Includes
    * UI Actions --> Script Include
    * Service Portal widget --> Scripted REST API --> Script Include
    * Client script --> Client callable script include --> Script Include
    * Scripted REST API --> Flow Action --> Script Include
    Code snippets shown in this video are available at: github.com/chu...
    References:
    * Learn JavaScript on the Now Platform - bit.ly/sn-learn-js
    * ServiceNow Developer Site - developer.serv...
    * ServiceNow Developer meetups - meetup.com/pro...
    * Book: No-Code Apps For Dummies - bit.ly/sn-ncafd
    * Docs: Business Rules (Paris) - docs.serviceno...
    * Docs: Script Includes - docs.serviceno...
    * Docs: Create an action - docs.serviceno...
    * Docs: Client Scripts - docs.serviceno...
    * Docs: Create a UI action - docs.serviceno...
    Join the discussion on the community: community.serv...
    Community Live Stream aires live each Monday and Thursday at 2PM UTC.

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

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

    Isn't it a best practice to use PATCH instead of GET, when updating certain fields in a record ?
    Just wanted to get a clarification.

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

      Yes, that's best practice. GET should be used to retrieve data. You can still pass query parameters or path parameters to filter/sort/etc.

    • @aishwaryashukla9280
      @aishwaryashukla9280 4 ปีที่แล้ว

      @@ChuckTomasi Okay. Thanks for the insight !

  • @joroklifov7338
    @joroklifov7338 4 ปีที่แล้ว

    Hi Chuck,
    getInfo() is not showing anything because the 'str' variable the method returns is actually empty - we should return 'inst' var insted. Just to point this out in case anyone is wondering why it was empty :)
    Cheers,
    Joro