Hi @Gangarde, Sachin , you can use the StringLastIndexOf
transformation method to get the index of the last occurrence of the pipe '|' operator and then use the StringSubstring
transformation method to get the remaining part of the string. Here is an example:
<ClaimsTransformation Id="GetObjectId" TransformationMethod="StringSubstring">
<InputClaims>
<InputClaim ClaimTypeReferenceId="objectId" TransformationClaimType="inputClaim" />
</InputClaims>
<InputParameters>
<InputParameter Id="startIndex" DataType="int" Value="{StringLastIndexOf:objectId, '|'}" />
<InputParameter Id="length" DataType="int" Value="{StringLength:objectId}" />
</InputParameters>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="objectId" TransformationClaimType="outputClaim" />
</OutputClaims>
</ClaimsTransformation>
This transformation method first uses the StringLastIndexOf
transformation method to get the index of the last occurrence of the pipe '|' operator in the objectId
claim. The result of this transformation method is then used as the startIndex
input parameter for the StringSubstring
transformation method. The length
input parameter is set to the length of the objectId
claim. The result of the StringSubstring
transformation method is then stored in the objectId
claim. This will give you the desired output.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James