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

newCompany

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

Description

Creates a new empty company.

In parameters

Parameter Description
sessionKey A valid session key
name Name of compnay

Out parameters

Parameter Description
errorCode See list of codes
companyId The ID of the new company

Example

ticket.ticketService ticketService = new ticket.ticketService();
string sessionKey;
string errorCode = ticketService.login("egon", "norges bank", out sessionKey);

if(errorCode.Equals("0"))
{
  string companyId;
  string companyName = "Liberty Communications";
  ticketService.newCompany(sessionKey,  companyName, out companyId);
}
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top