โ11-11-2019 03:50 PM
Hi ,
I am trying to read the pipeline metadata, specifically the child pipeline names that are invoked from a particular pipeline . I used the Snaplogic Read snap and i have the information in the $snap_map object variable , inside which there are sub areas . But seems the $snap_map is defined for each area of the pipeline and i am not able to read the object property specifically for the ones with child pipelines.
For example : $snap_map[โ06b13e42-5a86-4464-a0fb-7b682cbaddeeโ].property_map.settings.pipeline.value โ gives me the name of the child pipeline invoked but i am not able to make it generic like $snap_map [ * ] .property_map.settings.pipeline.value
Solved! Go to Solution.
โ11-12-2019 03:27 AM
Hi Preeta,
Not sure what is the error message that you receive back, but as not all the $snap_map objects contain the following path "[*].property_map.settings.pipeline.value, you can change the โMapping Rootโ to point at โ$snap_map[*].property_map.settingsโ, than you can query if the following path exists, with the function โ$.hasPath()โ. And if the path exists than you can map the value of the pipeline name. Please see the screenshot bellow.
Regards, Jovan.
โ11-12-2019 03:27 AM
Hi Preeta,
Not sure what is the error message that you receive back, but as not all the $snap_map objects contain the following path "[*].property_map.settings.pipeline.value, you can change the โMapping Rootโ to point at โ$snap_map[*].property_map.settingsโ, than you can query if the following path exists, with the function โ$.hasPath()โ. And if the path exists than you can map the value of the pipeline name. Please see the screenshot bellow.
Regards, Jovan.
โ11-12-2019 10:14 AM
Thank you!!
โ12-01-2019 07:36 AM
Hi J,
i am using snaplogic read snap to log all the accounts in my org with details in one file, however in case of basic auth account i am getting $property_map.settings values as below
{
โusernameโ:{
โvalueโ:โxxxxxxxโ
},
โpasswordโ:{
โfpโ:โsome_valueโ,
โvalueโ:โsome_valueโ,
โkeyโ:โsome_valueโ
}
}
how ca i extract the password for this kind of case ?
โ12-02-2019 09:43 AM
The password is encrypted with a private key, you shouldnโt be able to decrypt it.