• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

getPriorities

Some tooltip text!
• 1 minute to read
 • 1 minute to read

Description

Gets all the available priorities. The lowest ordered priority will be first in the array.

In parameters

Parameter Description
sessionKey A valid session key

Out parameters

Parameter Description
errorCode See list of codes
priorities A sorted array of PriorityStruct with lowest sortOrder first. Elements: id, name, sortOrder (higher number indicates higher priority)

Example

string sessionKey;

ticket.ticketService ticketService = new ticket.ticketService();

if(ticketService.login("test","test",out sessionKey)=="0")
{
  ticket.PriorityStruct[] priorities;
  ticketService.getPriorities(sessionKey, out priorities);
  string newValue="";
  foreach(ticket.PriorityStruct i in priorities)
  {
    newValue += i.name +"\\r\\n";
  }
  textBox1.Text = newValue;
}
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top