Zum Hauptinhalt gehen

How do I pass a Boolean value in a URL Argument?

Kommentare

4 Kommentare

  • Sean McClurkan
    If I default the value of "True" for the argument, I still get this error:

     

    There was a workflow error running activity: Exception has been thrown by the target of an invocation. The values provided for the root activity's arguments did not satisfy the root activity's requirements: 'DynamicActivity': Expected an input parameter value of type 'System.Boolean' for parameter named 'arSkipSearch'. Parameter name: rootArgumentValues

     

    How do I make the workflow argument Optional?
    0
  • Sean McClurkan
    The answer is to use a 1 for True and a 0 for False
    0
  • Permanently deleted user
    Heads up that if you are setting the default value for the Boolean argument when you configure the workflow paramters from within Site Mnager, then you need to use True/False instead of 0/1.

     

    And then even bigger heads up in case you have any legacy Silverlight viewer apps: annoyingly, the Silverlight viewer seems to require that you use True/False instead of 1/0 like the HTML5 viewer.  You would expect this to be independent of the viewer technology as promised, but apparently not....so you need to be careful if you have workflows you use in both Silverlight and HTML5 viewers.
    0
  • Permanently deleted user
    Sorry I see perhaps quick clarification on setting the default parameter. If you are using Silverlight viewer then you need to use True/False. If HTML5 then 0/1.  
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.