is there a quick way to download all your advanced...
# advancedpdf
m
is there a quick way to download all your advanced pdf tempates as xml?
s
You can retrieve the templates using an Account Customization (SDF) project. If using WebStorm or Eclipse it should be fairly easy to do. You end up with 2 xml files for each template, one is the template code itself, and the other is the metadata for the template.
m
I dont have webstorm or eclipse
s
Okay. I think it's possible to do with the SDF CLI as well, but I typically only use it for retrieving script files or pushing custom record types. You may have to read the documentation a bit to see how to do it, or see if anyone in the #C42JX79UZ channel knows the right commands.
Worst case, you could install Eclipse just to download the templates, and then get rid of it when you are done. I have used it to pull all of the account customizations out of two sandboxes before, so that I could compare them with a diff tool.
m
okay, ill give it a try
s
NetSuite recommends Eclipse 4.5.2 , even though that is a very outdated version. Newer versions of Eclipse don't work well with their plug-in (some features are broken).
The specific package they recommend, from SA article 50194, is this one, because it contain certain add-ons that are needed by the plug-in: https://www.eclipse.org/downloads/packages/release/mars/2/eclipse-ide-java-ee-developers
m
Im installing this now. Do you use this for all your netsuite development work? Just advanced pdfs?
s
I don't really use Eclipse for any scripting work, but I do use it occasionally to retrieve objects and script files. I usually edit scripts with VS Code, and then use Eclipse to update them. Lately I have been using WebStorm, however it requires a license. It has the same features as Eclipse for NetSuite development, but with a much better IDE.
m
ah, I also use vscode, but wind up uploading manually…
s
In that regard, setting up Eclipse to upload your files can be a time-saver, but it's not absolutely necessary.
m
That worked for getting all the pdf templates. Really inconvenient that they are all named as the internal id and not the template name though. Thanks
s
true
you can change the script id of the templates to be more similar to the template name, though. that's actually what we did. it helps if you are going to store the files in a code repository, since the name of the file is more descriptive