Skip to content

Commit af03bc0

Browse files
committed
Added doc. for collection(primitive) attr. support
1 parent 5ce9a39 commit af03bc0

File tree

2 files changed

+33
-11
lines changed

2 files changed

+33
-11
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ The **Output** section shows what the action returns and allows you to rename it
5555

5656
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.
5757

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+
5862
## Documentation Tab {#public-documentation}
5963

6064
In the **Documentation** tab, you can find a **Summary** and a **Description**. These fields contain public documentation provided by the author of the service.
@@ -81,6 +85,14 @@ If you have selected a variable for an entity that is an open type (`OpenType="t
8185
The ability to add additional attributes was introduced in [Studio Pro 11.5.0](/releasenotes/studio-pro/11.5/).
8286
{{% /alert %}}
8387

88+
### Collection Attributes
89+
90+
When assigning a value to an entity type parameter that has collection attributes (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+
8496
### Associations to Include
8597

8698
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.

content/en/docs/refguide/modeling/integration/odata-services/consumed-odata-services/consumed-odata-service-requirements.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,18 @@ Attributes marked as `FC_KeepInContent=false` cannot be used.
7878

7979
The most commonly used attribute types can be used in your app. The types of the attributes are be based on the types of the attributes in the OData metadata, as given in the following table:
8080

81-
| OData Type | Mendix Type |
82-
| --- | --- |
83-
| Binary | Binary (see [Binary Attributes](#binary-attributes) below) |
84-
| Boolean | Boolean ¹ |
85-
| Byte, SByte, Int16, Int32 | Integer |
86-
| DateTime, DateTimeOffset, Time | Date/time |
87-
| Decimal, Double, Single | Decimal ² |
88-
| Enumeration | Enumeration |
89-
| Int64 | Long |
90-
| String, Guid | String |
91-
| (Other) | (Ignored) |
81+
| OData Type | Mendix Type |
82+
| --- | --- |
83+
| Binary | Binary (see [Binary Attributes](#binary-attributes) below) |
84+
| Boolean | Boolean ¹ |
85+
| Byte, SByte, Int16, Int32 | Integer |
86+
| DateTime, DateTimeOffset, Time | Date/time |
87+
| Decimal, Double, Single | Decimal ² |
88+
| Enumeration | Enumeration |
89+
| Int64 | Long |
90+
| String, Guid | String |
91+
| Collection(Any Mendix-supported primitive type) | List (see [Collection Attributes](#collection-attributes) below)|
92+
| (Other) | (Ignored) |
9293

9394
¹ In Studio Pro, Booleans cannot be null. If the service returns null, the app will use the value `false`.
9495

@@ -122,6 +123,15 @@ The binary data format is supported in the form of *media entities*. When a medi
122123

123124
Currently, the binary data can only be accessed by Java actions.
124125

126+
### Collection Attributes {#collection-attributes}
127+
128+
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).
130+
131+
{{% 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/).
133+
{{% /alert %}}
134+
125135
### Associations
126136

127137
An OData v3 association can only be used if it has two ends.

0 commit comments

Comments
 (0)