Skip to content

Commit 7f873c9

Browse files
authored
Merge pull request #10246 from joostverhoog/optional-parameters
Introduce optional parameters
2 parents 2f8f10e + 0dee52f commit 7f873c9

File tree

2 files changed

+8
-2
lines changed
  • content/en/docs
    • refguide10/modeling/application-logic/microflows-and-nanoflows/activities/integration-activities
    • refguide/modeling/application-logic/microflows-and-nanoflows/activities/integration-activities

2 files changed

+8
-2
lines changed

content/en/docs/refguide/modeling/application-logic/microflows-and-nanoflows/activities/integration-activities/call-external-action.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ In the **Documentation** tab, you can find a **Summary** and a **Description**.
6565

6666
The **Edit External Action Parameter Mapping** dialog allows you to set the value of the parameter you pass to an external action. You can either select a **Variable** from the dropdown field, or write a custom [microflow expression](/refguide/expressions/) that returns a value of the expected type.
6767

68-
Every parameter must have a value specified. When **Can be empty** is true, the selected variable or expression may evaluate to `empty`. When the value cannot be empty, the microflow will throw an error if the value evaluates to `empty`.
68+
Every parameter must have a value specified unless the service indicates that the parameter is optional (with the `Org.OData.Core.V1.OptionalParameter` annotation).
69+
70+
When the service indicates that a value cannot be empty (with `Nullable="false"`), the microflow will throw an error if the value evaluates to `empty`.
6971

7072
If you have selected a variable for an entity that has associations, you can select which associations you want to include in the arguments that you call the external action with.
73+
74+
{{% alert color="info" %}}
75+
The possibility to not specify a value for optional parameters was introduced in Studio Pro 11.4.0.
76+
{{% /alert %}}

content/en/docs/refguide10/modeling/application-logic/microflows-and-nanoflows/activities/integration-activities/call-external-action.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ In the **Documentation** tab, you can find a **Summary** and a **Description**.
6969

7070
The **Edit External Action Parameter Mapping** dialog allows you to set the value of the parameter you pass to an external action. You can either select a **Variable** from the dropdown field, or write a custom [microflow expression](/refguide10/expressions/) that returns a value of the expected type.
7171

72-
Every parameter must have a value specified. When **Can be empty** is true, the selected variable or expression may evaluate to `empty`. When the value cannot be empty, the microflow will throw an error if the value evaluates to `empty`.
72+
Every parameter must have a value specified. When the service indicates that a value cannot be empty (with `Nullable="false"`), the microflow will throw an error if the value evaluates to `empty`.
7373

7474
If you have selected a variable for an entity that has associations, you can select which associations you want to include in the arguments that you call the external action with.
7575

0 commit comments

Comments
 (0)