GeeKs Blogging @ dotCOM

Let's share…
  • Home
  • About
  • How To – FAQs
  • Disclaimer
  • Terms & Conditions
22 Jul 2009

Siebel – Automating Merge Records by script – II

I call this Part II, as I have already introduced the Merge Records Siebel functionality, and discussed its usage in his post. One of the interesting discussions we had was how such a data could possibly be inserted into the Siebel system, since Siebel has so many mechanisms to prevent Data Corruption. We had also zeroed in on EIM and EAI as the basic culprits which could possibly insert inconsistent data into the Siebel Database.

When such a thing happens on sucha large scale, or when we know the exact pattern whereby we can detect these duplicate records in the system, we may look at options to automate the process of Merging Records. How nice would it be if we could just somehow put it all up in a workflow or script which would achieve the above objective.

Exploring further on the topic, I came to realize that there is an undocumented BC method which we may fire to achieve the objective above. Try looking at the script below:

var Target_Id = “Dummy-001″;
var Source_Id = “Dummy-002″;
var bo_Contact = TheApplication().GetBusObject(”Contact”);
var bc_Contact = bo_Contact.GetBusComp(”Contact”);

bc_Contact.InvokeMethod(”SetAdminMode”, “TRUE”);
bc_Contact.SetViewMode(All);
bc_Contact.ClearToQuery();
bc_Contact.SetSearchSpec(”Id”, Source_Id + ” OR ” + Target_Id );
bc_Contact.ExecuteQuery(ForwardBackward);

if (bc_Contact.FirstRecord())
{
while (bc_Contact.GetFieldValue(”Id”) != Target_Id)
{
bc_Contact.NextRecord()
}
bc_Contact.InvokeMethod(”MergeRecords”, Source_Id);
}

If you notice carefully, we have invoked the method, “MergeRecords” on the Contact BC. The Contact BC has the class, “CSSBCContactSIS” which definitely, thus, supports this method. My guess would be that this method would be supported for all the BCs, where the vanilla Edit -> Merge Records functionality is enabled for the corresponding views. I haven’t actually gone further than this.

If somebody has had any other experience with Merge Records, please do share! :-)

  • Twitter
  • Digg
  • Facebook
  • LinkedIn
  • Delicious
  • FriendFeed
  • Gmail
  • Hotmail
  • Multiply
  • MySpace
  • Yahoo Buzz
  • Yahoo Mail
  • Share/Bookmark

Related posts:

  1. Siebel – Merge Records – Checklist I call this Part III, and concluding part of a...
  2. Siebel – Merge Records Functionality How many times have we realized that there are multiple...
  3. Siebel – Looping multiple records – Update records Hi, We often come across a requirement where we need...
  4. Siebel – EAI Siebel Adapter – Looping Multiple Records This is a follow-up post on the post, Siebel –...
  5. Siebel – Looping Multiple Records – III Looping through multiple records is a requirement we come across...
  6. Siebel – Looping multiple records – Query and Process In my last post, I discussed as to how we...
  7. Siebel – SIA BC Utility Service – Loop multiple records This is a vanilla business service which provides an extensive...

Tags: Configuration, Fundamentals, Siebel, Siebel Secrets, Tutorials

This entry was posted on Wednesday, July 22nd, 2009 at 11:32 AM and is filed under Siebel CRM. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “Siebel – Automating Merge Records by script – II”

  1. Sajan says:
    July 22, 2009 at 1:11 PM

    Good Post Nitin !!!
    We can extend the functionality by writing a BS to merge more than 1 record to the source.

Leave a Reply

Click here to cancel reply.

« Siebel – Merge Records Functionality
Siebel – Fetch Active view properties »
  • Admin Controls

    • Log in
  • Talk to us

    • Bouquets, brickbats, suggestions, complaints?

    • Click here...
  • Authorships

    • We are currently looking out for active authors. Are you willing to contribute?

    • Please click here

    • Everyone's invited..
  • Subscribe by Email


  • Subscribe

    • Entries (RSS)
    • Comments (RSS)
  • Sponsors

  • Daily Dilbert

    •          
  • Sponsors

  • Categories

    • Admin Notifications (9)
    • Business Intelligence (2)
      • Actuate (2)
    • CRM (88)
      • CRM News (3)
      • Sage Software / ACT! (1)
      • Siebel CRM (83)
    • EAI (2)
    • FUN 'n' FROLIC (4)
    • IT News (25)
    • Meet the Author (8)
    • ORACLE (1)
      • Database (1)
    • Product Demostrations (3)
    • Uncategorized (2)
  • Tag Cloud

    Actuate Admin Admin Notifications Applet Author Introductions Business Component Calculated Function Certification CFG file Client Configuration Critique CRM Debugging EAI EIM eScript Fundamentals Fusion Middleware Gaming Google IT News License Logging Login Microsoft ORACLE Performance problems Product Defect Product Demostrations Scriptless solutions Security Server Siebel Siebel Secrets SOA SRF Tips Tools Tricks Tutorials User Property Workarounds workflows



  • Archives

    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
  • Authors

    • Ankit Bhardwaj
    • Ashish Kaul
    • brijesh
    • Himanshu Bajpai
    • Madhvi Arora
    • Nitin Jain
    • Prachi Sharma
    • Renuka Ankam
    • Vikas Luthra
  • Administrators

    • geeksblogging@gmail.com
    • admin@geeksbloggingat.com
  • Sponsors

Fresh Ideas

  • Salesforce CRM Essentials Webinar
  • Sun + Oracle is faster: Proof October 14
  • Oracle v/s IBM: One poster says it all
  • Geeks Blogging @ dotCOM - Subscribe by Email
  • Siebel - Installer hangs midway
  • Oracle finalizes new Training Partner
  • Oracle divorcing Prometric
  • What is Google?
  • Siebel - Case Insensitivity (CIAI) Wizard
  • Oracle VM Templates for Siebel CRM

Just Said

  • Nitin Jain on Siebel – Merge Records – Checklist
  • Bharat on Siebel – Merge Records – Checklist
  • Bharat on Siebel EIM – USING SYNONYMS
  • Nitin Jain on Siebel – Installer hangs midway
  • Siebal on Siebel – Installer hangs midway
  • Nitin Jain on Siebel – Installer hangs midway
  • Siebal on Siebel – Installer hangs midway
  • Nitin Jain on Siebel – Installer hangs midway
  • Siebal on Siebel – Installer hangs midway
  • Nitin Jain on Sun + Oracle is faster: Proof October 14

Most Commented

  • Siebel - SIA BC Utility Service - Loop multiple records
  • Siebel - Adding License Keys to Sample
  • Siebel - Popup Update Only
  • Siebel - Reading data directly from Siebel SRF
  • Siebel - Installer hangs midway
  • Siebel - Looping multiple records - Update records
  • Siebel - Automatic User Logout
  • Nitin Kumar Jain
  • Siebel - Scrolling between records - UP and DOWN
  • Siebel Tools hangs when checking out objects

Old Favourites

  • Highrise Customer Relationship Management
  • Siebel - Autosave Opportunity data - Sample Code
  • Siebel - Autosave Opportunity data - The concept
  • Renuka Ankam
  • Siebel - Merge Records - Checklist
  • Siebel - Fetch Active view properties - III
  • Oracle 11g Certification coming soon
  • Siebel - Fetch Active view properties - II
  • Siebel - Fetch Active view properties
  • Siebel - Automating Merge Records by script - II

If you also want to write on GeeksBlogging@dotCOM, click here. Area of Specialization no constraint. Become Famous!


Entries (RSS) and Comments (RSS).