Saturday, Oct. 21, 2017

How to read property sets from a XML file

Written By:

|

January 5, 2013

|

Posted In:

Requirement:

The requirement is to read the XML file from a local drive and read the property sets to perform the following actions:–
1. Count the number of Parent’s in the XML.
2. Count the number of child’s BC associated to each parent.
3. Extract a property of a parent.
4. Extract a property from a child under a parent.

Solution:

Follow the below steps to implement this requirement.
1. In Siebel Tools, create a new Custom Business Service and write the below code in PreInvokeMethod Event

XML property sets

GetParentAccount – CustomMethod name invoked in the Business Service.

2. Compile the Business Service and run it through the simulator. In the Debug mode traverse through the scripts and see the property sets extracted in the variables.

3. You can use the Siebel.XML for dummy tests as attached in the article below.

Sample XML Screenshots:

Screenshot1: XML property sets

The above screenshot shows all parent Accounts in the Incoming XML

Screenshot2:

XML property sets

The above screenshot shows the properties of the First Account such as AccountId, Account Status, Name. It also shows the list of Child records associated with the First Account

Note:
The above method just provides a basic understanding on property sets. Modify this business logic as per your business requirements.

DOWNLOAD XML FILE FOR ABOVE EXAMPLE

 



Share This Article

About Author

Gurdeep

Hi, I am sharing my experience to alleviate beginners with open UI and HI version of Siebel CRM. I work in Sun Life Financials and can be reached via IT Tool box as well. Thanks.

  • Prasanna S

    Hi Gurdeep, I am unable to download the XML file..Could you please post it again :)