ManageObjectsServicesManager..::..SaveProduct Method
Saves the product structure to database.
Namespace:
ServicePRO.Sdk.Windows.ManagersAssembly: ServicePRO.Sdk.Windows (in ServicePRO.Sdk.Windows.dll)
Syntax
public void SaveProduct( string sessionKey, stcProduct product, stcCompanyProduct[] hsCompanyProducts, int[] deletedVendors, stcUserFieldsTableValue[] theUDFValues, Action<stcProduct, stcServiceResult, Exception> callbackAction )
Public Sub SaveProduct ( _ sessionKey As String, _ product As stcProduct, _ hsCompanyProducts As stcCompanyProduct(), _ deletedVendors As Integer(), _ theUDFValues As stcUserFieldsTableValue(), _ callbackAction As Action(Of stcProduct, 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.
- product
- Type: HelpSTAR.PCL.Common..::..stcProduct
The product structure .
- hsCompanyProducts
- Type: array<stcCompanyProduct>[]()[][]
The collection of company products.
- deletedVendors
- Type: array<Int32>[]()[][]
ID collection of deleted vendors.
- theUDFValues
- Type: array<stcUserFieldsTableValue>[]()[][]
Collection of user defined values.
- callbackAction
- Type: Action<(Of <(<'stcProduct, stcServiceResult, Exception>)>)>
The callback action.