Skip to content

Commit f5ec0b2

Browse files
committed
More updates
1 parent e3a7988 commit f5ec0b2

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed

powerapps-docs/developer/model-driven-apps/clientapi/reference/Xrm-Utility/getGlobalContext/organizationSettings.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: "getGlobalContext.organizationSettings (Client API reference) in model-driven apps| MicrosoftDocs"
3-
ms.date: 10/31/2018
3+
ms.date: 02/06/2020
44
ms.service: powerapps
55
ms.topic: "reference"
66
applies_to: "Dynamics 365 (online)"
77
ms.assetid: badf4f82-cb47-4864-aa43-bb777d04de4d
88
author: "KumarVivek"
99
ms.author: "kvivek"
10-
manager: "amyla"
10+
manager: "annbe"
1111
search.audienceType:
1212
- developer
1313
search.app:
@@ -42,6 +42,8 @@ Returns attributes and their values as `key:value` pairs that are available for
4242

4343
Returns the ID of the base currency for the current organization.
4444

45+
Deprecated; use [organizationSettings.baseCurrency](baseCurrency) instead to access the display name along with the ID of the base currency.
46+
4547
### Syntax
4648

4749
`organizationSettings.baseCurrencyId`
@@ -50,7 +52,7 @@ Returns the ID of the base currency for the current organization.
5052

5153
**Type**: String
5254

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

5557
## baseCurrency
5658

@@ -62,7 +64,7 @@ Returns a lookup object containing the ID, name, and entity type of the base cur
6264

6365
### Return Value
6466

65-
**Type**: Object
67+
**Type**: Lookup Object
6668

6769
**Description**: Object containing the `id`, `name`, and `entityType` of the base currency. For example:
6870

powerapps-docs/developer/model-driven-apps/clientapi/reference/Xrm-Utility/getGlobalContext/userSettings.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "getGlobalContext.userSettings (Client API reference) in model-driven apps| MicrosoftDocs"
3-
ms.date: 10/31/2018
3+
ms.date: 02/06/2020
44
ms.service: powerapps
55
ms.topic: "reference"
66
applies_to: "Dynamics 365 (online)"
@@ -108,6 +108,20 @@ Returns the language ID for the current user.
108108

109109
**Description**: Language ID.
110110

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+
111125
## securityRolePrivileges
112126

113127
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
124138

125139
## securityRoles
126140

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

129145
### Syntax
130146

@@ -138,26 +154,28 @@ Returns an array of strings that represent the GUID values of each of the securi
138154

139155
`["0d3dd20a-17a6-e711-a94e-000d3a1a7a9b", "ff42d20a-17a6-e711-a94e-000d3a1a7a9b"]`
140156

141-
## roles
157+
## transactionCurrency
142158

143-
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.
144160

145161
### Syntax
146162

147-
`userSettings.roles`
148-
163+
`userSettings.transactionCurrency`
164+
149165
### Return Value
150166

151-
**Type**: Array of objects
167+
**Type**: Lookup object
152168

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:
154170

155171
`{id: "e7dd9bc6-d239-ea11-a813-000d3a35b14a", entityType: "transactioncurrency", name: "US Dollar"}`
156172

157173
## transactionCurrencyId
158174

159175
Returns the transaction currency ID for the current user.
160176

177+
Deprecated; use [transactionCurrency](#transactionCurrency) instead to access the display name along with the ID.
178+
161179
### Syntax
162180

163181
`userSettings.transactionCurrencyId`

0 commit comments

Comments
 (0)