Policy Automation for B2C Service

Get Involved. Join the Conversation.

Topic

    Scott Heidenreich
    Dynamic Load Complex logicAnswered
    Topic posted May 1, 2019 by Scott HeidenreichBronze Trophy: 5,000+ Points 
    72 Views, 3 Comments
    Title:
    Dynamic Load Complex logic
    Summary:
    Is there a way to use both AND and OR together in a dynamic load statement?
    Content:

    Hello,

    When an entity is being loaded is it possible to sue And statements with Or statements?  It seems I can do one or the other but not both.

    For example: Load all instances that meet one or more conditions

    (Attribute1 = 1 and

    Attribute 2 = A)

    or

    (Attribute 1 = 2 and

    attribute 3 = C)

    Version:
    18D

    Best Comment

    Fiona Guy

    Yes you need to add the grouping word "all" before both groups and it should trigger an indent on the next line - make sure the conditions within the parenthesis use that indent. 

    all

          Attribute1 = 1 and

          Attribute 2 = A

    or

    all

          Attribute1 = 2 and

          Attribute 2 = C

    Should work. Attached example shows indent. 

    Comment