Alternative to pzExternalName property qualifier and it's limitation
Problem Statement :
We had a Integration property created at Organization layer and it was already deployed to Production. As part of requirement, we had additional fields received from the existing Rest service and existing stored proc but it was returing a data element which was having case mismatch.
For ex : RelationshipToEnrollee- in Pega which already exisiting
RelationshiptoEnrollee - From Rest service.
Because of this, data was not getting mapped.
We can had pzExternalName as the property qualifier for the existing property but this will work only for Rest Service not for the Stored proc result.
and this will lead to do regression test of other components which is using that property.
Solution :
We can use @getPropertyValueFormPage function to get the value of the property which integration component is sending.
Added the below in Integration Response Datatransform.
Param.StepPage = @pxGetStepPageReference()
.RelationshipToEnrollee = @getPropertyValueFormPage(tools,Param.StepPage,"RelationshiptoEnrollee")