top of page

    OmniScript Conditional Fields Not Working for Multiple Records in Vlocity Edit Block

    • Writer: VlocityGru
      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.

    In this screenshot, if requirement is to show the error message as per each block.
    In this screenshot, if requirement is to show the error message as per each block.

    Example Fix:

    • ❌ Incorrect - {"type" : %FinancialAccount.Type%} (Only applies to the first record)

    • ✅ Correct - {"type" :%FinancialAccount|n.Type%} (Applies to all records)



    © 2024 VlocityGru Blog. All Rights Reserved.

    bottom of page