Hi @Soni, Ashish ,
Thanks for reaching out.
I understand you are trying to get claim values ('email', 'otp') or constants ('en') to generate a JSON string but only getting locale value in the JSON.
To get claim values and constants to generate a JSON string, you need to add JSON objects to JSON array following dot notation which is used to indicate where to insert the data into a JSON string.
<ClaimsTransformations>
<ClaimsTransformation Id="GenerateEmailRequestBody" TransformationMethod="GenerateJson">
<InputClaims>
<InputClaim ClaimTypeReferenceId="email" TransformationClaimType="value.0.email"/>
<InputClaim ClaimTypeReferenceId="otp" TransformationClaimType="value.0.otp"/>
</InputClaims>
<InputParameters>
<InputParameter Id="value.1.language" DataType="string" Value="{Culture:RFC5646}"/>
</InputParameters>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="emailRequestBody" TransformationClaimType="outputClaim"/>
</OutputClaims>
</ClaimsTransformation>
</ClaimsTransformations>
{
"value": [
{
"email": "someone@microsoft.com",
"otp": "123456"
},
{
"language": "en"
},
]
}
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.