Views:

Description

Iterates over a set of records and performs an action

Delete all contacts that start with the letter A.

Signature

ForEachRecord('entitycollection', 'action1', 'action2')

Example

ForEachRecord(
   FindRecordsFD('AllContactsStartingWithA' ),
    DeleteRecord('contact', CurrentRecord('contactid')
   )
)

The function RecordIndex() allows you to access an integer containing the current index number of the loop.

The function RecordTotal() allows you to access an integer containing the total number of loops.

The function CurrentRecord() allows you to access an the entity object of the current loop.

Parameters

Name Type Description Required
entitycollection xxxx xxxx xxxx
action1 xxxx xxxx xxxx
action2 xxxx xxxx xxxx

Notes: