PSCAMA record is tagged with each record in the message rowset and it would be appended only if we use CopyRowsetDelta method .
In my case , I am trying to trigger my incremental EIP for student external system ID , I have written the following code on my component save post change event and its working fine .
/*CRM4HE Online EIP */
Local Rowset &rsLvl1, &rsLvl2, &rsLvl0;
Local Field &fldLevel2;
Local Message &MSG;
Local Rowset &RS1;
/* Get Level 0 Rowset */
&rsLvl0 = GetLevel0();
/* Get Level 1 Rowset */
&rsLvl1 = GetLevel0()(1).GetRowset(Scroll.EXTERNAL_SYSKEY);
For &i = 1 To &rsLvl1.ActiveRowCount
/* Get Level 2 Rowset */
&rsLvl2 = &rsLvl1(&i).GetRowset(Scroll.EXTERNAL_SYSTEM);
REM &fldLevel2 = &rsLvl2.GetRow(&i).GetRecord(Record.EXTERNAL_SYSTEM).GetField(Field.EXTERNAL_SYSTEM_ID);
REM &Level2FldValue = &fldLevel2.Value;
REM MessageBox(0, "", 0, 0, "" | &Level2FldValue);
&MSG = CreateMessage(Message.KS_BADGE_ID_SYNC);
&MSG.CopyRowsetDelta(&rsLvl2, Record.EXTERNAL_SYSTEM, Record.EXTERNAL_SYSTEM);
&MSG.Publish();
End-For;
No comments:
Post a Comment