Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Overview


This structure is used to uniquely identify a company. Companies can be identified by CompanyName, CompanyUid or CompanyNumber. When specifying a PwsCompanyRef as an input to a web service, you may specify one, two or all three fields, CompanyName, CompanyUid or CompanyNumber. However, if you do specify more than one field, both values must refer to the same cost center or the cost center reference will not be considered valid. When a PwsCompanyRef is returned in the response to a web service, the CompanyName, CompanyUid and CompanyNumber will be populated, and guaranteed to refer to a single company.

Format


PwsCompanyRef
  • PwsCompanyRef
    • CompanyId: Int32
    • CompanyName: String
    • CompanyUid: Int64
    • CompanyNumber: String

Elements


Element

Data Type

Required?

Default

Description

Sample Data

CompanyId

Int32

On Insert: No

On Update: No


The company Id is a unique identifier for a company. For internal use only.


CompanyName

String

On Insert: Yes

On Update: Yes (if CompanyUid or CompanyNumber is not provided)




CompanyUid

Int64

On Insert: No

On Update: Yes (if CompanyName or CompanyNumber is not provided)




CompanyNumber

String

On Insert: No

On Update: Yes (if CompanyName or CompanyUid is not provided)




Usage Example(s)

Example 01
                  <b:CompanyIdentity>
                     <b:CompanyId i:nil="true"/>
                     <b:CompanyName>USA</b:CompanyName>
                     <b:CompanyUid>1152921504606850739</b:CompanyUid>
                     <b:CompanyNumber>USA</b:CompanyNumber>
                  </b:CompanyIdentity>
  • No labels