biuan SAP® BUSINESS ONE SDK
API Sales Opportunity Interests Setup Service / Get Data Interface From XML File

Description

Creates an object from an XML file.

Syntax

Visual Basic
Public Function GetDataInterfaceFromXMLFile( _
   ByVal bstrFileName As String _
) As Object

Parameters

bstrFileName

The path and name of the XML file with which to create the object.

Remarks

The XML file can be created using an object's ToXMLFile method.

The XML file defines the object and its data.

Example

Create object from XML file (C#)
public void AddFromXMLFile(Hashtable Properties, String Path) { //Store GeneralData object as XML SAPbobsCOM.GeneralService oGeneralService; SAPbobsCOM.GeneralData oGeneralData; SAPbobsCOM.GeneralData oGeneralDataXML; oGeneralService = cConnection.Instance.DICompanyService.GetGeneralService(UDOID); oGeneralData = (GeneralData)oGeneralService.GetDataInterface(GeneralServiceDataInterfaces.gsGeneralData); foreach (DictionaryEntry Pair In Properties) oGeneralData.SetProperty(Pair.Key.ToString(), Pair.Value.ToString()); oGeneralData.ToXMLFile(Path); //Retrieve XML and create GeneralData object from the XML oGeneralDataXML = (GeneralData)oGeneralService.GetDataInterfaceFromXMLFile(Path); oGeneralService.Add(oGeneralDataXML); }

See Also

Related information


Sales Opportunity Interest Setup SalesOpportunityInterestSetup Object· Table: OOIN
Represents an area of interest for the sales opportunity. Source table: OOIN Mandatory properties: Description
   Parent: Sales Opportunity Interests Setup Service SalesOpportunityInterestsSetupService Service· Table: OOIN

Sales Opportunity Interest Setup Params Collection SalesOpportunityInterestSetupParamsCollection Collection
A collection of SalesOpportunityInterestSetupParams objects.
   Parent: Sales Opportunity Interests Setup Service SalesOpportunityInterestsSetupService Service· Table: OOIN

Sales Opportunity Interests Setup Service Data Interfaces SalesOpportunityInterestsSetupServiceDataInterfaces Enumeration
SalesOpportunityInterestsSetupService data interfaces.
   Parent: Sales Opportunity Interests Setup Service SalesOpportunityInterestsSetupService Service· Table: OOIN


SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates