Skip to content

Commit 40fa3a2

Browse files
authored
Merge pull request #104398 from yoelhor/patch-6
Update phone-number-claims-transformations.md
2 parents dfac19d + 93611ac commit 40fa3a2

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

articles/active-directory-b2c/phone-number-claims-transformations.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: celestedg
99
ms.service: active-directory
1010
ms.workload: identity
1111
ms.topic: conceptual
12-
ms.date: 02/12/2020
12+
ms.date: 02/14/2020
1313
ms.author: marsma
1414
ms.subservice: B2C
1515
---
@@ -28,7 +28,8 @@ This claim validates the format of the phone number. If it is in a valid format,
2828

2929
| Item | TransformationClaimType | Data Type | Notes |
3030
| ---- | ----------------------- | --------- | ----- |
31-
| InputClaim | inputClaim | string | The claim of string type converting from. |
31+
| InputClaim | phoneNumberString | string | The string claim for the phone number. The phone number has to be in international format, complete with a leading "+" and country code. If input claim `country` is provided, the phone number is in local format (without the country code). |
32+
| InputClaim | country | string | [Optional] The string claim for the country code of the phone number in ISO3166 format (the two-letter ISO-3166 country code). |
3233
| OutputClaim | outputClaim | phoneNumber | The result of this claims transformation. |
3334

3435
The **ConvertStringToPhoneNumberClaim** claims transformation is always executed from a [validation technical profile](validation-technical-profile.md) that is called by a [self-asserted technical profile](self-asserted-technical-profile.md) or [display control](display-controls.md). The **UserMessageIfClaimsTransformationInvalidPhoneNumber** self-asserted technical profile metadata controls the error message that is presented to the user.
@@ -40,7 +41,8 @@ You can use this claims transformation to ensure that the provided string claim
4041
```XML
4142
<ClaimsTransformation Id="ConvertStringToPhoneNumber" TransformationMethod="ConvertStringToPhoneNumberClaim">
4243
<InputClaims>
43-
<InputClaim ClaimTypeReferenceId="phoneString" TransformationClaimType="inputClaim" />
44+
<InputClaim ClaimTypeReferenceId="phoneString" TransformationClaimType="phoneNumberString" />
45+
<InputClaim ClaimTypeReferenceId="countryCode" TransformationClaimType="country" />
4446
</InputClaims>
4547
<OutputClaims>
4648
<OutputClaim ClaimTypeReferenceId="phoneNumber" TransformationClaimType="outputClaim" />
@@ -59,11 +61,19 @@ The self-asserted technical profile that calls the validation technical profile
5961
</TechnicalProfile>
6062
```
6163

62-
### Example
64+
### Example 1
6365

6466
- Input claims:
65-
- **inputClaim**: +1 (123) 456-7890
67+
- **phoneNumberString**: 045 456-7890
68+
- **country**: DK
6669
- Output claims:
70+
- **outputClaim**: +450546148120
71+
72+
### Example 2
73+
74+
- Input claims:
75+
- **phoneNumberString**: +1 (123) 456-7890
76+
- Output claims:
6777
- **outputClaim**: +11234567890
6878

6979
## GetNationalNumberAndCountryCodeFromPhoneNumberString

0 commit comments

Comments
 (0)