ContributionsMost RecentMost LikesSolutionsRe: Py Script snap Hey Mathew, Thanks for reply. I want to add a column in existing resultset that is array. and it is all in python. If you can help me for that? Thanks Python lib Hi, I am trying to add a library in python script snap as below. But it is throwing error? import numpy Thanks String to json in pyscript how can I convert string to json in python script snap including how to add library in pyscript? Py Script snap add library How can I add a library in python script, when I am trying to add any library even simple like import json it is throwing error. Please advice Py Script snap I am building a pipeline which need to make recurring API call and consolidate the result. But when I call the API inside py script snap then it does not return result as the API default result. I tried to use two methods of get as get.getResponseBodyAsString() and get.getResponseBody() get.getResponseBodyAsString() → return response as string get.getResponseBody() → returns “Base64 encoded data” So I am stuck here, where I need the result in json format which is default API response type, but it is creating issue. Below is the code for this. from com.snaplogic.scripting.language import ScriptHook from com.snaplogic.scripting.language.ScriptHook import * from org.apache.commons.httpclient import HttpClient from org.apache.commons.httpclient.methods import GetMethod; class UploadScript(ScriptHook): def init(self, input, output, error, log): self.input = input self.output = output self.error = error self.log = log def execute(self): while self.input.hasNext(): data = self.input.next() url = "https://gorest.co.in/public-api/products" get = GetMethod(url) client = HttpClient() r = client.executeMethod(get) #s = get.getResponseBodyAsString() s = get.getResponseBody() t = get.getStatusText() h = get.getResponseHeaders() self.output.write(s) self.log.info("Finished executing the upload script") hook = UploadScript(input, output, error, log) Rest api curl Is there any way that a Rest API snap call can be seen as curl or other format. So somebody can validate the rest api call params? Rest POST for --data-raw How can I call below curl command in Rest POST snap curl --location --request POST ‘localhost:8086/api/v2/write?bucket=mydb&precision=s’ --header ‘Content-Type: application/x-www-form-urlencoded’ --data-raw ‘mem,host=test’ Pls advice? Replace files content in a folder I have a folder which contains subfolder and many json files. I need to create a pipeline where can filter the folder and find files with content “” and replace with “[{}]”. remember not all files contain , some of files has only . For important values storage I have some important values that I dont want anybody including me can see as plain text and further I can use those values in any snap. So what is the recommendations to store those values? Re: Netsuite - dynamically passing the object name I want to export entire data in object to json and want to pass the object name dynamically. If that make sense?