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/apidocs-mxsdk/apidocs/studio-pro-10/extensibility-api/csharp/extensibility-api-howtos/untyped-model-api.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,31 +7,35 @@ weight: 24
7
7
8
8
## Introduction
9
9
10
-
The Untyped Model Access API caters to the advanced users who are familiar with the internals of the Mendix platform. With the Untyped Model API, you can access the rich data of model elements.
10
+
The Untyped Model Access API is designed for advanced users familiar with the internals of the Mendix platform. It allows access to the rich data of model elements.
11
11
12
-
When you need to use model elements, units, and property names in the Untyped Model API, you can reference the [Mendix Model SDK](https://apidocs.rnd.mendix.com/modelsdk/latest/index.html). Moreover, you can find the type names used by the Untyped Model Access API under the [structureTypeName](https://apidocs.rnd.mendix.com/modelsdk/latest/classes/Structure.html#structureTypeName) property of any model element.
12
+
* For model elements, units, and property names, see the [Mendix Model SDK](https://apidocs.rnd.mendix.com/modelsdk/latest/index.html).
13
+
* Type names used by the Untyped Model Access API are available under the [structureTypeName](https://apidocs.rnd.mendix.com/modelsdk/latest/classes/Structure.html#structureTypeName) property of any model element.
13
14
14
15
{{% alert color="info" %}}
15
-
All methods provided by the Untyped Model API are recursive to reduce the amount of API calls necessary to get to the content you are looking for.
16
+
All methods in the Untyped Model API are recursive to reduce the amount of API calls necessary to retrieve content.
16
17
{{% /alert %}}
17
18
18
19
## Prerequisites
19
20
20
-
To see the Untyped Model API in action, as described in the examples in this document, you must create a microflow having the default name `MyFirstLogic` with an action, and add an entity to the domain model.
21
+
Before using the examples in this how-to:
22
+
23
+
* Create a microflow named `MyFirstLogic` with an action
24
+
* Add an entity to the domain model
21
25
22
26
## Getting Started
23
27
24
-
To start using the Untyped Model API, import it:
28
+
Begin by importing the Untyped Model Access API service:
@@ -62,9 +66,9 @@ class Sample3(IUntypedModelAccessService untypedModelAccessService, IModel curre
62
66
63
67
## Accessing Child Elements
64
68
65
-
It is possible to access the child elements of a model element, such as the actions of a microflow or entities of a domain model.
69
+
You can access the child elements of a model element, such as microflow actions or entities of a domain model.
66
70
67
-
Using either `GetElements` or `GetElementsOfType`, can help you, for example, analyze these elements' properties to implement custom validation rules. See an example below:
71
+
Use `GetElements` or `GetElementsOfType` to analyze the element properties and implement custom validation rules.
0 commit comments