You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/refguide/modeling/application-logic/microflows-and-nanoflows/activities/integration-activities/call-external-action.md
-12Lines changed: 0 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,10 +55,6 @@ The **Output** section shows what the action returns and allows you to rename it
55
55
56
56
If the action returns an entity that has associations, you can select the associations that you want to have populated in the resulting variable. You can then use the **Retrieve object(s)** activity to retrieve the associated objects over the association.
57
57
58
-
{{% alert color="info" %}}
59
-
The support for OData actions that return entity type having Collection attribute(s) of supported primitive types, was introduced in [Studio Pro 11.6.0](/releasenotes/studio-pro/11.6/).
60
-
{{% /alert %}}
61
-
62
58
## Documentation Tab {#public-documentation}
63
59
64
60
In the **Documentation** tab, you can find a **Summary** and a **Description**. These fields contain public documentation provided by the author of the service.
@@ -85,14 +81,6 @@ If you have selected a variable for an entity that is an open type (`OpenType="t
85
81
The ability to add additional attributes was introduced in [Studio Pro 11.5.0](/releasenotes/studio-pro/11.5/).
When assigning a value to an entity type parameter that has collection attributes (Mendix-supported primitive types; e.g., a list of strings), select the corresponding attribute of matching type from list variable (list of objects) — Mendix will automatically use the whole list to populate the collection values.
91
-
92
-
{{% alert color="info" %}}
93
-
The support for OData actions with parameter entity type having Collection attribute(s) of supported primitive types, was introduced in [Studio Pro 11.6.0](/releasenotes/studio-pro/11.6/).
94
-
{{% /alert %}}
95
-
96
84
### Associations to Include
97
85
98
86
If you have selected a variable for an entity that has associations, you can select the associations you want to include in the arguments that you call the external action with.
Copy file name to clipboardExpand all lines: content/en/docs/refguide/modeling/integration/odata-services/consumed-odata-services/consumed-odata-service-requirements.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ The most commonly used attribute types can be used in your app. The types of the
88
88
| Enumeration | Enumeration |
89
89
| Int64 | Long |
90
90
| String, Guid | String |
91
-
| Collection | List (see [Collection Attributes](#collection-attributes) below)|
91
+
| Collection | List (see [Collection Attributes](#collection-properties) below)|
92
92
| (Other) | (Ignored) |
93
93
94
94
¹ In Studio Pro, Booleans cannot be null. If the service returns null, the app will use the value `false`.
@@ -123,13 +123,18 @@ The binary data format is supported in the form of *media entities*. When a medi
123
123
124
124
Currently, the binary data can only be accessed by Java actions.
Collection attributes (Mendix-supported primitive types) are supported in OData entity type when consumed as an external entity.
129
-
When an entity type with supported Collection attribute(s) is added to the domain model, each of its Collection attributes is represented as a non-persistable entity (associated as a one-way navigable Reference-set to original attribute containing entity type). The domain model entity corresponding to the collection attribute contains a single attribute (having same primitive type as the type of Collection in the OData metadata).
128
+
Entity type properties that are a collection of a supported attribute type are supported through the use of a associated non-persistable entity.
129
+
130
+
Take for example a `Product` entity type has an attribute `Tags` with type `Collection(Edm.String)`. The resulting domain model looks as follows:
131
+
132
+
{{< figure src="/attachments/refguide/modeling/integration/odata-services/consumed-odata-service/collection-of-primitives.png" alt="A product entity with an associated ProductTag entity. The ProductTag entity has a Tag attribute" width="531" class="no-border" >}}
133
+
134
+
For entity sets these properties are not supported. This means that they can only be used in parameters and return values of external actions.
130
135
131
136
{{% alert color="info" %}}
132
-
The support for OData actions with parameter entity type having Collection attribute(s) of supported primitive types, was introduced in [Studio Pro 11.6.0](/releasenotes/studio-pro/11.6/).
137
+
Collection properties were introduced in [Studio Pro 11.6.0](/releasenotes/studio-pro/11.6/).
133
138
{{% /alert %}}
134
139
135
140
### Associations
@@ -164,18 +169,15 @@ Supported types, and their corresponding type in Mendix, are:
164
169
| Entity | Object ³ |
165
170
| Enumeration | Enumeration |
166
171
| String, Guid | String |
167
-
| Collection | List ⁴ |
168
172
169
-
Note that the only supported Collection type is a Collection of Entities, Collection of mendix-supported primitives, and that binary parameters or return values are not supported for consumed OData actions.
173
+
Note that the only supported Collection type is a Collection of Entities, and that binary parameters or return values are not supported for consumed OData actions.
170
174
171
175
¹ In Mendix, Booleans cannot be null. If the action returns null, the value will be false in Mendix.
172
176
173
177
² Decimal values outside of the range of a Mendix [Decimal](/refguide/attributes/#type) are currently not supported. If the action returns a value outside of the range, the action will return an error.
174
178
175
179
³ Objects that contain attributes of complex types are not currently supported in actions.
176
180
177
-
⁴ Collection of Mendix-supported primtive types, see more details in [Using Collection-type attributes in Call External Action](/refguide/call-external-action/#collection-attributes)
178
-
179
181
{{% alert color="warning" %}}
180
182
When the OData endpoint contains functions, these are not imported in the consumed OData service. You can use a [Call REST service](/refguide/call-rest-action/) activity to call these functions.
0 commit comments