📚 SAP Business One SDK Help

SetExtensionProperty Method
See Also  Example
connectionString
The connection string
lcmType
The type of your extension lifecycle management
propName
The property name
propValue
The property value

Description

Sets the shared parameters and parameters of your extension.

Syntax

Visual Basic
Public Sub SetExtensionProperty( _
   ByVal connectionString As String, _
   ByVal lcmType As BoExtensionLCMStageType, _
   ByVal propName As String, _
   ByVal propValue As String _
) 

Parameters

connectionString
The connection string
lcmType
ValueDescription
lcm_extensionFor SAP Business One Cloud extensions.
lcm_assignmentThe lightweight extension assignment process.
lcm_deploymentThe lightweight extension deployment process.
The type of your extension lifecycle management
propName
The property name
propValue
The property value

Example

Getting and Setting Shared Parameters and Parameters of Your Extension (C#)Copy Code
string value = Applica-tion.SBO_Application.Company.GetExtensionProperty(Program.connectionString, SAP-bouiCOM.BoExtensionLCMStageType.lcm_deployment, "SP1"); 
Applica-tion.SBO_Application.MessageBox(value); 
Applica-tion.SBO_Application.Company.SetExtensionProperty(Program.connectionString, SAP-bouiCOM.BoExtensionLCMStageType.lcm_deployment, "SP1", "Test1"); 
 
string value = Applica-tion.SBO_Application.Company.GetExtensionProperty(Program.connectionString, SAP-bouiCOM.BoExtensionLCMStageType.lcm_assignment, "P1"); 
Applica-tion.SBO_Application.MessageBox(value); 
Applica-tion.SBO_Application.Company.SetExtensionProperty(Program.connectionString, SAP-bouiCOM.BoExtensionLCMStageType.lcm_assignment, "P1", "TestP1"); 

See Also