Siebel – Looping multiple records – Query and Process
by Nitin JainIn my last post, I discussed as to how we can query and update multiple records in Siebel Database. You can find it in the link below:
Siebel – Looping multiple records – Update.
Today, let’s see if there are some good ways to loop through multiple records in Siebel in Query mode, and process the data in each of the records one by one. Let’s assume the requirement statement is, “To query for these multiple records and send them to external interface one by one”.
One of the easiest solutions, use scripts! I am extending the example I used in the previous post:
var bo_Order = TheApplication().GetBusObject ( “Order Entry (Sales)” );
var bc_Order = bo_Order.GetBusComp ( “Order Entry – Orders” );
with (bc_Order)
{
ClearToQuery();
SetViewMode(AllView);
ActivateField ( “Status” );
SetSearchSpec ( “Account”, “Nitin Test Account” );
ExecuteQuery ( ForwardOnly );
var IsRecord = FirstRecord();
while (IsRecord)
{
// Call another workflow / BS to process the data.. send to external interface in this case..
IsRecord = NextRecord();
}
}
return (CancelOperation);
Anybody who can possibly think of a better solution?
Related posts:
- Siebel – Looping multiple records – Update records Hi, We often come across a requirement where we need...
- Siebel – Looping Multiple Records – III Looping through multiple records is a requirement we come across...
- Siebel – EAI Siebel Adapter – Looping Multiple Records This is a follow-up post on the post, Siebel –...
- Siebel – SIA BC Utility Service – Loop multiple records This is a vanilla business service which provides an extensive...
- EAI Siebel Adapter BS – Upsert Multiple Child Records EAI Siebel Adapter finds its usage in almost all integration...
- Siebel – Upgrade Process – Part II This is a continuation from the post, Siebel – Upgrade...
- Query on the Long Column or Field A typical problem in any EAI project. Others too!! One...
[...] this Part III, as we have already covered this before on GeeksBlogging@dotCOM, in the articles, Siebel – Looping multiple records – Query and Process Siebel – SIA BC Utility Service – Loop multiple [...]
Hey, better use EAI Siebel Adapter and then apply Transformation to break into multiple message in one file and push to external system.