2

Is there a way, in the preconditions step of an orchestrationstep to check if a claim is set to empty string?

I've tried the below and it doesn't work, it never executes the SkipThisOrchestrationStep

              <Precondition Type="ClaimEquals" ExecuteActionsIf="true">
                <Value>readOnlyPhone</Value>
                <Value></Value>
                <Action>SkipThisOrchestrationStep</Action>
              </Precondition>
            </Preconditions>

Also I have also attempted to use ClaimExists and that does not work either

            <Preconditions>
              <Precondition Type="ClaimsExists" ExecuteActionsIf="false">
                <Value>readOnlyPhone</Value>
                <Action>SkipThisOrchestrationStep</Action>
              </Precondition>
            </Preconditions>

Background, the claim is being set by a RestfulProvider Technical Profile, and the API will return in the payload "phoneNumber": ""

Phaded
  • 99
  • 1
  • 1
  • 6

1 Answers1

6

Use a compare claims transform to return a Boolean https://learn.microsoft.com/en-us/azure/active-directory-b2c/string-transformations#compareclaimtovalue

Then use a claimsEqual precondition against this Boolean.

Jas Suri - MSFT
  • 10,605
  • 2
  • 10
  • 20