OmniScript Conditional Fields Not Working for Multiple Records in Vlocity Edit Block
- VlocityGru
- Feb 25
- 1 min read
Updated: Feb 25
Append “|n” to the end of the reference being looped over to ensure OmniScript recognizes it as handling multiple records. This syntax signals that the reference applies dynamically to all instances, making it work wherever looping is required.
Use |n for Dynamic Referencing.

Example Fix:
❌ Incorrect - {"type" : %FinancialAccount.Type%} (Only applies to the first record)
✅ Correct - {"type" :%FinancialAccount|n.Type%} (Applies to all records)