@AmanpreetSingh-MSFT @Jas Suri @James Hail @Marilee Turscak-MSFT
we are trying to validate the PhoneNumber through REST API call. if the PhoneNumber Already Exists we send a JSON As Per Doc. sample JSON Structure below.
{
"version": "1.0.0",
"statusCode": 409,
"userMessage": "User already exist with this phone number"
}
but it throws Error Message like below
'AF-PhoneNumberValidation' specified in step '3' returned HTTP error response with Code 'Conflict' and Reason 'Conflict'.
Below is the Rest API Call
<ClaimsProvider>
<DisplayName>HTTP Request Technical Profiles</DisplayName>
<TechnicalProfiles>
<TechnicalProfile Id="AF-PhoneNumberValidation">
<DisplayName> Phone Number Validation </DisplayName>
<Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.RestfulProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
<Metadata>
<Item Key="ServiceUrl">URL</Item>
<Item Key="SendClaimsIn">Body</Item>
<Item Key="AuthenticationType">None</Item>
<Item Key="AllowInsecureAuthInProduction">true</Item>
<Item Key="HttpBinding">POST</Item>
<Item Key="IncludeClaimResolvingInClaimsHandling">true</Item>
</Metadata>
<InputClaims>
<InputClaim ClaimTypeReferenceId="extension_phoneNumber" PartnerClaimType="phoneNumber"/>
</InputClaims>
</TechnicalProfile>
</TechnicalProfiles>
</ClaimsProvider>
calling this Technical Profile
<ValidationTechnicalProfiles>
<ValidationTechnicalProfile ReferenceId="AF-PhoneNumberValidation" ContinueOnError="false"/>
<ValidationTechnicalProfile ReferenceId="AAD-UserWriteUsingLogonEmail" />
</ValidationTechnicalProfiles>
Please let me know if we have missed out anything.
Thanks,
Rajadurai.