This is a public Forum  publicRSS

Topic

    Ziv S
    Get Field Value Using Javascript APIAnswered
    Topic posted August 28, 2018 by Ziv SExplorer 
    83 Views, 2 Comments
    Title:
    Get Field Value Using Javascript API
    Content:

    Hi everyone,

    As part of a function that I'm working on, I need to get the ID of the incident's queue using JS API. I was able to find the syntax for getting the value of a custom field in the documentation ("GetCustomFieldByName)", but not for system/standard fields like Queue.

    Can anyone share how to get the ID of the incident's queue? Let's assume that I have defined my incident variable as follows:

    var inc = window.external.Incident;

    Thanks in advance.
    Ziv

    Version:
    OSC 18A (Feb 2018)

    Best Answer

    Robert Surujbhan

    Hi Ziv - an incident's queue ID will be accessible using:

    var queueId = inc.QueueId;
    

    Reference the field list here for more details!

    Answer

     

    • Robert Surujbhan

      Hi Ziv - an incident's queue ID will be accessible using:

      var queueId = inc.QueueId;
      

      Reference the field list here for more details!

    • Ziv S
      Robert Surujbhan said:

      Hi Ziv - an incident's queue ID will be accessible using:

      var queueId = inc.QueueId;
      

      Reference the field list here for more details!

      View original

       

      Perfect, this is exactly what I was looking for!

      Thank you for the help :)