โ03-08-2023 01:12 PM
Within a pipeline, how can I programmatically access the SLPROPZ file for a snaplex, and write the contents of the file out to the local hard drive?
We have over 500 snaplexes that we need to do this for, so manually downloading them all is not a good solution.
Also, for various reasons I wonโt go into, we cannot employ an outside task that just pings each download endpoint. This HAS to be done from within a set of pipelines.
The SnapLogic Metadata snaps give me the ability to list Snaplexes and to read them as a set of JSON attributes. But there seems no way to obtain (or reconstruct) the SLPROPZ file.
Any help that can be provided will be much appreciated!
โ03-08-2023 01:57 PM
Hi @ForbinCSD - have you looked at the Snaplex API?
I believe that will give you the information you need. And this could be called from a pipeline with the HTTP Client or REST Get snap using org admin account credentials.
โ03-08-2023 02:03 PM
Hi, Kory:
A couple of questions:\\\\ actually just the 1 questionโฆ I found the Basic Auth in the documenttion!
โ03-08-2023 02:31 PM
Aha! Iโve finally cleared the Auth hurdle and getting a response from a REST GET snap.
Now I just need to figure out how to transform the Base64-encoded $entity contents into binary before writing it to a file.
Many thanks!!
โ03-08-2023 02:47 PM
@ForbinCSD - glad youโre clearing the hurdles! Check your โacceptโ HTTP header settings. You may want to set that as โapplication/jsonโ and set the Response Entity Type in the REST Get snap as TEXT. If that doesnโt work, Iโll try to put together a sample pipeline for you.