Thursday, Jan. 18, 2018

Prevent existing Account record to be picked as Parent record

Written By:


September 4, 2012


Posted In:


The requirement is to prevent the constrcution of circular relation ship between an account making the same record its parent account.


Follow the steps below to implement this requirement:

1. Add the following code to the Account Pick Applet to populate a profile attribute with the rowid corresponding to the current account record in the active busobject.

function WebApplet_Load ()
var id = “”;
var bo = TheApplication().ActiveBusObject();
if (bo.Name() == “Account”)
var bc = bo.GetBusComp(“Account”);
id = bc.GetFieldValue(“Id”);

2. Set the search specification of the pick applet to the following to exclude the current account record from any queries executed in the pick applet:

[Id] <> GetProfileAttr(“AccountPickAppletId”)

Share This Article

About Author


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.

Comments are closed.

Leave A Reply