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: articles/active-directory/manage-apps/functions-for-customizing-application-data.md
+27-3Lines changed: 27 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ ms.workload: identity
11
11
ms.tgt_pltfrm: na
12
12
ms.devlang: na
13
13
ms.topic: conceptual
14
-
ms.date: 07/31/2019
14
+
ms.date: 02/05/2020
15
15
ms.author: mimart
16
16
17
17
ms.collection: M365-identity-device-management
@@ -34,7 +34,7 @@ The syntax for Expressions for Attribute Mappings is reminiscent of Visual Basic
34
34
* For string constants, if you need a backslash ( \ ) or quotation mark ( " ) in the string, it must be escaped with the backslash ( \ ) symbol. For example: "Company name: \\"Contoso\\""
@@ -283,7 +283,7 @@ Returns True if the attribute is not present or is an empty string
283
283
---
284
284
### IsPresent
285
285
**Function:**<br>
286
-
IsNullOrEmpty(Expression)
286
+
IsPresent(Expression)
287
287
288
288
**Description:**<br>
289
289
If the expression evaluates to a string that is not Null and is not empty, then the IsPresent function returns true. The inverse of this function is named IsNullOrEmpty.
@@ -413,6 +413,30 @@ Flips the boolean value of the **source**. If **source** value is "*True*", retu
413
413
| --- | --- | --- | --- |
414
414
|**source**|Required |Boolean String |Expected **source** values are "True" or "False". |
415
415
416
+
---
417
+
### NumFromDate
418
+
**Function:**<br>
419
+
NumFromDate(value)
420
+
421
+
**Description:**<br>
422
+
The NumFromDate function converts a DateTime value to Active Directory format that is required to set attributes like [accountExpires](https://docs.microsoft.com/windows/win32/adschema/a-accountexpires). Use this function to convert DateTime values received from cloud HR apps like Workday and SuccessFactors to their equivalent AD representation.
423
+
424
+
**Parameters:**<br>
425
+
426
+
| Name | Required/ Repeating | Type | Notes |
427
+
| --- | --- | --- | --- |
428
+
|**value**|Required | String | Date time string in the supported format. For supported formats, see https://msdn.microsoft.com/library/8kb3ddd4%28v=vs.110%29.aspx.|
429
+
430
+
**Example:**<br>
431
+
* Workday example <br>
432
+
Assuming you want to map the attribute *ContractEndDate* from Workday which is in the format *2020-12-31-08:00* to *accountExpires* field in AD, here is how you can use this function and change the timezone offset to match your locale.
Assuming you want to map the attribute *endDate* from SuccessFactors which is in the format *M/d/yyyy hh:mm:ss tt* to *accountExpires* field in AD, here is how you can use this function and change the time zone offset to match your locale.
0 commit comments