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

getExtraFields

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

Description

Finds the extra fields that are connected to customer, company, or ticket. The structure returned contains information about the extra field, such as data type, name, and ID. The method will return all fields (both internal and external).

In parameters

Parameter Description
sessionKey A valid session key
domain The domain to list. Can be "customer", "company" or "ticket". Only the extra fields connected to the domain specified will be returned.

Out parameters

Parameter Description
errorCode See list of codes
extraFields The available extra fields. Contained in the structure are the following fields:
extraFields Description
fieldName Internal name of the field ("customer.x_1" )
displayField The external name of the extra field
fieldId The internal ID. Same as the number in fieldName
fieldType Data type of the field

Example

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

if(ticketService.login("test","test",out sessionKey)=="0")
{
  ticket.ExtraFieldsStruct[] extraFields;
  ticketService.getExtraFields(sessionKey, "customer", out extraFields);
}
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top