Skip to content

Commit f272fc1

Browse files
authored
Merge pull request #4393 from MicrosoftDocs/users/ankarm/trialorganization
New Client API for trial organization information
2 parents da7bd03 + 63854b4 commit f272fc1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,34 @@ Returns the ID of the current organization.
128128

129129
**Description**: Id of the current organization.
130130

131+
## isTrialOrganization
132+
133+
Returns a boolean indicating whether the organization is a trial organization.
134+
135+
### Syntax
136+
137+
`organizationSettings.isTrialOrganization`
138+
139+
### Return Value
140+
141+
**Type**: Boolean
142+
143+
**Description**: **true** if the organization is a trial organization; **false** otherwise.
144+
145+
## organizationExpiryDate
146+
147+
Returns the expiry date of the current organization if it is a trial organization.
148+
149+
### Syntax
150+
151+
`organizationSettings.organizationExpiryDate`
152+
153+
### Return Value
154+
155+
**Type**: Date
156+
157+
**Description**: Returns a `Date` object with the organization's expiry date if it is a trial organizaiton. Returns NULL if the organization is not a trial organization.
158+
131159
## uniqueName
132160

133161
Returns the unique name of the current organization.

0 commit comments

Comments
 (0)