ServicePRO SDK Help

ManageObjectsServicesManager..::..SaveCompany Method

Saves the company structure to database.

Namespace:  ServicePRO.Sdk.Windows.Managers
Assembly:  ServicePRO.Sdk.Windows (in ServicePRO.Sdk.Windows.dll)

Syntax


public void SaveCompany(
	string sessionKey,
	stcCompanyDTO sCompanyDTO,
	List<stcUserFieldsTableValue[]> theUDFValues,
	Action<stcCompany, stcServiceResult, Exception> callbackAction
)
Public Sub SaveCompany ( _
	sessionKey As String, _
	sCompanyDTO As stcCompanyDTO, _
	theUDFValues As List(Of stcUserFieldsTableValue()), _
	callbackAction As Action(Of stcCompany, stcServiceResult, Exception) _
)

Parameters

sessionKey
Type: String
User’s Session Key.
Key property of the User Session Object of type stcSession.
The User Session has to be established by making a call to InitializeSystemAndSession() method in CoreServicesManager class as a first step with using ServicePRO SDK.
sCompanyDTO
Type: HelpSTAR.PCL.Common..::..stcCompanyDTO
Structure of CompanyDTO.
theUDFValues
Type: List<(Of <(<'array<stcUserFieldsTableValue>[]()[][]>)>)>
The collection of user defined values.
callbackAction
Type: Action<(Of <(<'stcCompany, stcServiceResult, Exception>)>)>
The callback action.