Get Elements with Loop Action Builder

media_1485667250628-1.png

Retrieves all elements that match a specific criteria and loops through each element.

Created Script

media_1485667270445-1.png

Get Search Elements – retrieves elements based on a criteria and sets it to a variable.

Note: the current element, within the loop,will be set to the CurrentItem variable.

media_1485667283414-1.png

Get Element Tag – retrieves the Tag of the current element.

media_1485667295885-1.png

Since elements retrieved can be of differing types, a If action is added for each element tag found in the ElementCollection.

In this case, the CurrentItem will check to see if it is a Link Element.

media_1485667728691-1.png

Has Tag – if the element does have the correct tag, all actions within this sequence will be performed.

Get Attribute Value – retrieves a attribute value from the CurrentItem.