In an IPA, I have used webrun node to call an API with the results in CSV format. I used JSON converter node to convert from CSV to JSON. Now I need to reference the output of the converter and map to a different JSON definition. How do I reference the output from the converter within the JSON Builder? My result set from the JSON converter looks like this:
JSONConverter7220_outputData =
[
{
"Description":"New/Unknown Department",
"BusinessGroupCH":"",
"ShortDescription":"00000",
"Active":"true",
"HROrganizationUnit":"40",
"HROrganization":"30",
"UnitType":"DEPARTMENT",
"DivisionCH":"",
"OrgUnitProcessLevelNewCH":"SW-Clinical Integration Netwrk"
},
{
"Description":"ACHF-ADMINISTRATION",
"BusinessGroupCH":"FOUND",
"ShortDescription":"00042",
"Active":"true",
"HROrganizationUnit":"42",
"HROrganization":"30",
"UnitType":"DEPARTMENT",
"DivisionCH":"ACHF",
"OrgUnitProcessLevelNewCH":"ACHF"
},
{
"Description":"SW-Parent Admin",
"BusinessGroupCH":"SUPPORT",
"ShortDescription":"00054",
"Active":"true",
"HROrganizationUnit":"43",
"HROrganization":"30",
"UnitType":"DEPARTMENT",
"DivisionCH":"PPL",
"OrgUnitProcessLevelNewCH":"CORP"
},
The new json format is
{
"folder": {
"value": "Active Cost Center"
},
"name":"<!JSONConverter7220_outputData>.${.Description.value}",
"externalid":"HROrganizationUnit",
"field36862":"ShortDescription",
"field36857":{
"externalid":"DivisionCH"
},
"field36858":{
"externalid":"BusinessGroupCH"
},
"field36859":{
"externalid":"OrgUnitProcessLevelNewCH"
}
}
I have inserted the new JSON into the builder and tried this path, but it is not working. The output is that exact statement.
"name":"<!JSONConverter7220_outputData>.${.Description.value}"
I also realize i could have set the output on the webrun to JSON, but I am not sure how to reference that output either.
Thanks,
Maggie