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

Version 1 Next »

THIS PAGE IS UNDER CONSTRUCTION


First an introductory sentence or paragraph here. 

Standard Formatting

Help pages should follow a standard for headers and sub-topics. Formatted headers will automatically display under the "On this page" section on the right of each page.

Bullet Points

  • Use bullet points when listing out st

Filtered Loops

(such as a contact with a specific affiliation type)

Add a Where clause to the foreach loop to filter:
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