Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

THIS PAGE IS UNDER CONSTRUCTION


First an introductory sentence or paragraph here. 

Cross-Functional Area Contact Roles Available

Description text here.

Bullet Points

  • Bullet points

Filtered Loop Syntax

(such as a contact with a specific affiliation type)

Add a Where clause to the foreach loop to filter:

For example, the manure hauler is:

<<foreach [contact in contacts.Where(x => x.affiliationTypeCode == “MNR_HAUL”)]>><<[contact.contactName]>><</foreach>>

If you want to protect against multiple matching contacts being returned (such as 2 or more manure haulers in the example above), then add Take(1) to the markup:

<<foreach [contact in contacts.Where(x => x.affiliationTypeCode == “MNR_HAUL”).Take(1)]>><<[contact.contactName]>><</foreach>>



On this page


Sub-Topics


Related Content


  • No labels