Hi All,
I have set a context variable in proxy preflow using a javascript. In node js I am access that variable.
I am preparing a final json response in node.js. I am getting target response and capturing it in a variable in nodjs. And finally I am preparing response by mapping fields from target response to one final json object and sending that json object as final response to Client.
I am mapping lijke below for example:
finalResponse.YearOfBrth = targetResponse.My_KR_Year_Of_Birth;
hete KR is country code,so instead of using the entire name as My_KR_Year_Of_Birth I want to map it as My_{country}_Year_Of_Birth where country is from context variable.
How can I achieve this so that I can generalise the mapping for different country codes as the remaining part of the field name would be same for other countries.
Regards
Ravi