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/app-provisioning/functions-for-customizing-application-data.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -648,7 +648,7 @@ Returns a substring of the source value. A substring is a string that contains o
648
648
| --- | --- | --- | --- |
649
649
|**source**|Required |String |Usually name of the attribute. |
650
650
|**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. |
651
-
|**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. |
651
+
|**length**|Required |Integer |Length of the substring. If length ends outside the **source** string, function will return substring from **start** index until end of **source** string. |
652
652
653
653
---
654
654
### NormalizeDiacritics
@@ -797,7 +797,7 @@ Let's say you are sourcing the attributes *firstName* and *lastName* from SAP Su
The RandomString function generates a random string based on the conditions specified. Characters allowed can be identified [here](/windows/security/threat-protection/security-policy-settings/password-must-meet-complexity-requirements#reference).
@@ -921,7 +921,7 @@ Then in this case, you can use the following expression in your attribute mappin
921
921
**Example 2:** Using **oldValue** and **template** to insert the source string into another *templatized* string.
922
922
923
923
The parameter **oldValue** is a misnomer in this scenario. It is actually the value that will get replaced.
924
-
Let's say you want to always generate login id in the format `<username>@contoso.com`. There is a source attribute called **UserID** and you want that value to be used for the `<username>` portion of the login id.
924
+
Let's say you want to always generate login ID in the format `<username>@contoso.com`. There is a source attribute called **UserID** and you want that value to be used for the `<username>` portion of the login ID.
925
925
Then in this case, you can use the following expression in your attribute mapping.
@@ -1110,6 +1110,10 @@ When **source** value matches a **key**, returns **value** for that **key**. If
1110
1110
> Switch function performs a case-sensitive string comparison of the **source** and **key** values. If you'd like to perform a case-insensitive comparison, normalize the **source** string before comparison using a nested ToLower function and ensure that all **key** strings use lowercase.
1111
1111
> Example: `Switch(ToLower([statusFlag]), "0", "true", "1", "false", "0")`. In this example, the **source** attribute `statusFlag` may have values ("True" / "true" / "TRUE"). However, the Switch function will always convert it to lowercase string "true" before comparison with **key** parameters.
1112
1112
1113
+
> [!CAUTION]
1114
+
> For the **source** parameter, do not use the nested functions IsPresent, IsNull or IsNullOrEmpty. Instead use a literal empty string as one of the key values.
1115
+
> Example: `Switch([statusFlag], "Default Value", "true", "1", "", "0")`. In this example, if the **source** attribute `statusFlag` is empty, the Switch function will return the value 0.
0 commit comments