Description
Updates an existing business partner property.
The data for the business partner property, including the key of the business partner property to be updated, is contained in the BusinessPartnerProperty object passed to the method. To update a business partner property, you must first retrieve it using the GetBusinessPartnerProperty method.
Syntax
Parameters
Example
| Updating a business partner property (C#) | Copy Code |
|---|
try { oBPPropSrv = (BusinessPartnerPropertiesService)(MainModule.oCmpSrv.GetBusinessService(ServiceTypes.BusinessPartnerPropertiesService)); BusinessPartnerPropertyParams getLine; BusinessPartnerProperty updateLine; getLine = (BusinessPartnerPropertyParams)oBPPropSrv.GetDataInterface(BusinessPartnerPropertiesServiceDataInterfaces.bppsBusinessPartnerPropertyParams); // update getLine.PropertyCode = 5; updateLine = oBPPropSrv.GetBusinessPartnerProperty(getLine); updateLine.PropertyName = "New Value"; oBPPropSrv.UpdateBusinessPartnerProperty(updateLine); } catch (Exception ex) { Interaction.MsgBox(ex.Message, (Microsoft.VisualBasic.MsgBoxStyle)(0), null); }
|
|
See Also