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: powerapps-docs/developer/model-driven-apps/clientapi/reference/Xrm-Utility/getGlobalContext/organizationSettings.md
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
2
title: "getGlobalContext.organizationSettings (Client API reference) in model-driven apps| MicrosoftDocs"
3
-
ms.date: 10/31/2018
3
+
ms.date: 02/06/2020
4
4
ms.service: powerapps
5
5
ms.topic: "reference"
6
6
applies_to: "Dynamics 365 (online)"
7
7
ms.assetid: badf4f82-cb47-4864-aa43-bb777d04de4d
8
8
author: "KumarVivek"
9
9
ms.author: "kvivek"
10
-
manager: "amyla"
10
+
manager: "annbe"
11
11
search.audienceType:
12
12
- developer
13
13
search.app:
@@ -42,6 +42,8 @@ Returns attributes and their values as `key:value` pairs that are available for
42
42
43
43
Returns the ID of the base currency for the current organization.
44
44
45
+
Deprecated; use [organizationSettings.baseCurrency](baseCurrency) instead to access the display name along with the ID of the base currency.
46
+
45
47
### Syntax
46
48
47
49
`organizationSettings.baseCurrencyId`
@@ -50,7 +52,7 @@ Returns the ID of the base currency for the current organization.
50
52
51
53
**Type**: String
52
54
53
-
**Description**: ID of the base currency. This is deprecated; use `organizationSettings.baseCurrency` instead to get the name along with the ID of the base currency.
55
+
**Description**: ID of the base currency.
54
56
55
57
## baseCurrency
56
58
@@ -62,7 +64,7 @@ Returns a lookup object containing the ID, name, and entity type of the base cur
62
64
63
65
### Return Value
64
66
65
-
**Type**: Object
67
+
**Type**: Lookup Object
66
68
67
69
**Description**: Object containing the `id`, `name`, and `entityType` of the base currency. For example:
Copy file name to clipboardExpand all lines: powerapps-docs/developer/model-driven-apps/clientapi/reference/Xrm-Utility/getGlobalContext/userSettings.md
+26-8Lines changed: 26 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: "getGlobalContext.userSettings (Client API reference) in model-driven apps| MicrosoftDocs"
3
-
ms.date: 10/31/2018
3
+
ms.date: 02/06/2020
4
4
ms.service: powerapps
5
5
ms.topic: "reference"
6
6
applies_to: "Dynamics 365 (online)"
@@ -108,6 +108,20 @@ Returns the language ID for the current user.
108
108
109
109
**Description**: Language ID.
110
110
111
+
## roles
112
+
113
+
Returns a collection of lookup objects containing the GUID and display name of each of the security role or teams that the user is associated with.
114
+
115
+
### Syntax
116
+
117
+
`userSettings.roles`
118
+
119
+
### Return Value
120
+
121
+
**Type**: Array of objects
122
+
123
+
**Description**: Object containing the `id` and `name` of each of the security role privilege that the user is associated with or any teams that the user is associated with.
124
+
111
125
## securityRolePrivileges
112
126
113
127
Returns an array of strings that represent the GUID values of each of the security role privilege that the user is associated with or any teams that the user is associated with.
@@ -124,7 +138,9 @@ Returns an array of strings that represent the GUID values of each of the securi
124
138
125
139
## securityRoles
126
140
127
-
Returns an array of strings that represent the GUID values of each of the security role that the user is associated with or any teams that the user is associated with.
141
+
Returns an array of strings that represent the GUID values of each of the security role or teams that the user is associated with.
142
+
143
+
Deprecated; use [roles](#roles) instead to view the display names of security roles or teams along with the ID.
128
144
129
145
### Syntax
130
146
@@ -138,26 +154,28 @@ Returns an array of strings that represent the GUID values of each of the securi
Returns a collection of lookup objects containing the GUID and name of each of the security role privilege that the user is associated with or any teams that the user is associated with.
159
+
Returns a lookup object containing the ID, display name, and entity type of the transaction currency for the current user.
144
160
145
161
### Syntax
146
162
147
-
`userSettings.roles`
148
-
163
+
`userSettings.transactionCurrency`
164
+
149
165
### Return Value
150
166
151
-
**Type**: Array of objects
167
+
**Type**: Lookup object
152
168
153
-
**Description**: Object containing the `id` and `name` of each of the security role privilege that the user is associated with or any teams that the user is associated with.
169
+
**Description**: Object containing the `id`, `name`, and `entityType` of the transaction currency. For example:
0 commit comments