NSOA.record.<complex type>( [id] )
This set of functions is used to create SuiteProjects Pro Complex Type objects. If the Internal ID is passed as a parameter then the object will be populated accordingly. The following objects are supported:
|
oaAddress |
oaEstimatephase |
oaPurchaser |
|
oaAgreement |
oaEvent |
oaPurchaserequest |
|
oaApproval |
oaHierarchy |
oaRatecard |
|
oaBooking |
oaHierarchyNode |
oaReimbursement |
|
oaBookingType |
oaHistory |
oaRequest_item |
|
oaBudget |
oaImportExport |
oaResourceprofile |
|
oaBudgetAllocation |
oaInvoice |
oaResourceprofile_type |
|
oaCategory |
oaItem |
oaRevenue_recognition_rule |
|
oaCcrate |
oaJobcode |
oaRevenue_ |
|
oaCompany |
oaLeave_accrual_rule |
oaRevenue_ |
|
oaContact |
oaLeave_accrual_rule_to_user |
oaSchedulerequest |
|
oaCostcenter |
oaLeave_accrual_transaction |
oaSchedulerequest_item |
|
oaCurrency |
oaLoadedCost |
oaSlip |
|
oaCurrencyrate |
oaModule |
oaSlipstage |
|
oaCustField |
oaPayment |
oaSwitch |
|
oaCustomer |
oaPaymentterms |
oaTask |
|
oaCustomerpo |
oaPaymenttype |
oaTaskTimecard |
|
oaCustomerpo_to_project |
oaPayrolltype |
oaTaxLocation |
|
oaCustomField |
oaPreference |
oaTaxRate |
|
oaDate |
oaProduct |
oaTerm |
|
oaDeal |
oaProject |
oaTicket |
|
oaDealcontact |
oaProjectbillingrule |
oaTimecard |
|
oaDealschedule |
oaProjectbillingtransaction |
oaTimesheet |
|
oaDepartment |
oaProjectlocation |
oaTimetype |
|
oaEntitytag |
oaProjectstage |
oaTodo |
|
oaEnvelope |
oaProjecttask |
oaUprate |
|
oaError |
oaProjecttask_type |
oaUser |
|
oaEstimate |
oaProjecttaskassign |
oaUserWorkschedule |
|
oaEstimateadjustment |
oaProposal |
oaVendor |
|
oaEstimateexpense |
oaProposalblock |
oaWorkspacelink |
|
oaEstimatelabor |
oaPurchase_item |
oaWorkspaceuser |
|
oaEstimatemarkup |
oaPurchaseorder |
|
You can look up the SuiteProjects Pro Complex Types and their properties from the SuiteProjects Pro WSDL available from the following URL https://<account-domain>/wsdl.pl.
SuiteProjects Pro Complex Type objects are required in the following wsapi functions:
For more information about the SOAP API (Web Services), see XML API and SOAP API.
Parameters
id {var} [optional] — If specified, this (internal) ID will be used to populate the new object.
Returns
SuiteProjects Pro Complex Type object.
Units Limit
0 units
For more information, see Scripting Governance.
Since
November 16, 2013
Example
-
This sample creates a customer object populates with the current values in the database.
// Create customer object populated with data for ID = 66 var customer = NSOA.record.oaCustomer(66); -
This sample creates a new category in SuiteProjects Pro.
// Create a new category object var category = new NSOA.record.oaCategory(); // empty category category.name = "New Category"; category.cost_centerid = "123"; category.currency = "USD"; // Invoke the add call var results = NSOA.wsapi.add( [category] );See also NSOA.wsapi.add(objects).
See Code Samples for more examples.