Skip to content

Commit 7321358

Browse files
Update functions-for-customizing-application-data.md
1 parent 1c2f225 commit 7321358

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/active-directory/app-provisioning/functions-for-customizing-application-data.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.reviewer: arvinh
1515

1616
# Reference for writing expressions for attribute mappings in Azure Active Directory
1717

18-
When you configure provisioning to a SaaS application, one of the types of attribute mappings that you can specify is an expression mapping. For these, you must write a script-like expression that allows you to transform your users' data into formats that are more acceptable for the SaaS application.
18+
When you configure provisioning to a SaaS application, one of the types of attribute mappings that you can specify is an expression mapping. For these mappings, you must write a script-like expression that allows you to transform your users' data into formats that are more acceptable for the SaaS application.
1919

2020
## Syntax overview
2121

@@ -54,7 +54,7 @@ Takes a source string value and appends the suffix to the end of it.
5454

5555

5656
#### Append constant suffix to user name
57-
Example: If you are using a Salesforce Sandbox, you might need to append an additional suffix to all your user names before synchronizing them.
57+
Example: If you are using a Salesforce Sandbox, you might need to append another suffix to all your user names before synchronizing them.
5858

5959
**Expression:**
6060
`Append([userPrincipalName], ".test")`
@@ -352,7 +352,7 @@ The **interval** string must have one of the following values:
352352
| Difference in seconds between two dates | s | 2021-08-24 | 2021-08-25 | 86400 |
353353

354354
**Example 2: Combine DateDiff with IIF function to set attribute value** <br>
355-
If an account is Active in Workday, set the *accountEnabled* attribute of the user to True only if hire date is within the next 5 days.
355+
If an account is Active in Workday, set the *accountEnabled* attribute of the user to True only if hire date is within the next five days.
356356

357357
```
358358
Switch([Active], ,
@@ -637,7 +637,7 @@ Returns a substring of the source value. A substring is a string that contains o
637637
| --- | --- | --- | --- |
638638
| **source** |Required |String |Usually name of the attribute. |
639639
| **start** |Required |integer |Index in the **source** string where substring should start. First character in the string will have index of 1, second character will have index 2, and so on. |
640-
| **length** |Required |integer |Length of the substring. If length ends outside the **source** string, function will return substring from **start** index till end of **source** string. |
640+
| **length** |Required |integer |Length of the substring. If length ends outside the **source** string, function will return substring from **start** index untill end of **source** string. |
641641

642642
---
643643
### NormalizeDiacritics
@@ -730,11 +730,11 @@ The NumFromDate function converts a DateTime value to Active Directory format th
730730

731731
**Example:**
732732
* Workday example
733-
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.
733+
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.
734734
`NumFromDate(Join("", FormatDateTime([ContractEndDate], ,"yyyy-MM-ddzzz", "yyyy-MM-dd"), " 23:59:59-08:00"))`
735735

736736
* SuccessFactors example
737-
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.
737+
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.
738738
`NumFromDate(Join("",FormatDateTime([endDate], ,"M/d/yyyy hh:mm:ss tt","yyyy-MM-dd")," 23:59:59-08:00"))`
739739

740740

@@ -807,7 +807,7 @@ The RandomString function generates a random string based on the conditions spec
807807
`RandomString(6,3,0,0,3)`
808808
Generates a random string with 10 characters (3 numbers and 3 lower case characters).
809809

810-
**Example 2:** - Genareate a random string with special character restrictions:
810+
**Example 2:** - Generate a random string with special character restrictions:
811811
`RandomString(10,2,2,2,1,"?,")`
812812
Generates a random string with 10 characters (2 numbers, 2 special characters, 2 capital letters, 1 lower case letter). Excludes "?" and "," from the random string generated.
813813

0 commit comments

Comments
 (0)