how to get the script title when running a schedul...
# suitescript
i
how to get the script title when running a scheduled script, I am able to get script id, deployment id, and any parameters but can't seem to figure out how to get the title.
m
Copy code
const scriptTitle = search.lookupFields({ type: 'script', id: 718, columns: ['name'] })['name'];
i
thanks, was just rereading my comment and meant to say i need the script deployment title
m
Similar answer:
Copy code
const scriptDeploymentTitle = search.lookupFields({ type: 'scriptdeployment', id: 14818, columns: ['title'] })['title'];
😂 1
n
@Israel Gonzalez I am curious, why do you need the script/deployment title?
i
The script gets csv files from a folder and creates a csv task. Want to put the title on the csv import name. Was looking at using the title instead of creating another parameter
👍 1