• 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 external 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.

PriorityStruct elements:

  • id: internal ID of the priority
  • name: name of the priority
  • sortOrder: Sort order number, where a higher number indicated higher priority.

Example

string sessionKey;

customer.customerService custService = new customer.customerService();

if(custService.login("test","test",out sessionKey)=="0")
{
  customer.PriorityStruct[] priorities;
  custService.getPriorities(sessionKey, out priorities);
  string newValue="";
  foreach(customer.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