Begin deployment Update object -- customscript_......
# sdf
s
Begin deployment Update object -- customscript_... Update object -- customscript_.... 2020-02-11 124553 (PST) Installation COMPLETE (0 minutes 1 second) Now don't laugh at me. It says that it's deployed. OK. But the scripts are not in my local PC, they only in the Sandbox. Am I right to believe that it took the scripts from Sandbox and install them in Sandbox. I know I should have used QA but it's only a test. If I'm right, it will raise another question.
b
Keep in mind there is a difference between a script record and a script file
Your logs say you updated the script recirds
s
O
I'm deploying custom script (for now)
I'm still wondering where did it take the scripts from ? I'm pretty sure sandbox. If true, and I wait 3 hours before creating the deploy.xml and someone in the meantime, change the scripts, I think it will take the latest version of the script, which will include my friend changes. Right ?
b
Same way that you can update a script record in the ui
Your script record has a select field for a file
Whatever file contents is in that file when the script runs is what is used
s
AFAIK, an SDF deploy will only take files from your local system, ever.
s
first of all, thank you all for your help. I think I wasn't clear enough. I have a dev, a qa and a prod environments. I create a new Cloud project named Simon. I went in Simon -> Objects and used Netsuite->Import Objects from Account. I'm imported my 2 scripts. Then I ran the add dependencies. Then I've updated the deploy.xml with my 2 files. The deploy to Account,.. Physically I have never downloaded the files in Eclipse on my local pc. When it deployed, it says that it was deployed. So, I guess it took the files from Netsuite, not my PC.
e
you physically downloaded 2 files: xml files representing the script
objects
you mentioned. The script files (*.js) were perhaps not downloaded, but if you look at your ~/Objects folder you will see the xml files in question. The SDF deploy operation pulled those in, validated your dependencies were in place, and deployed the script object definitions to your target environment. Makes sense?
s
Yes it does. So it doesn't take the script from my Eclipse but from Sandbox. and here is my question : in the meantime, another developer change the script, So when my "deploy" is deploy to QA, it will take the script in Sandbox and copy it to QA, hence my friends code. Right ?
e
No, sorry, you didn’t understand: it always only takes from your local machine = Eclipse = whatever you imported or downloaded to your local environment and not Sandbox (like @stalbert said). So, it will always take whatever XML file is in your Objects folder on your local machine
b
Be more clear. Script file vs script record.
s
Script file
e
sorry! script file - because you listed it as a dependency, it doesn’t move any updated file and just keeps whatever was in the target, yes
thanks @battk
s
How do we move script files (suitelet) from Sandbox to QA ? Especially I did not download them
e
you can download them and move them via SDF if you want… ?
s
I'm a bit confuse, well a lot, I've been told to use Deploy.xml. More I think about it, it's maybe only for custom fields ?
e
Sorry, maybe I’m confused and not explaining properly. In deploy.xml you can specify particular items to move or move all - including both script files and other objects in your account.
s
I think I got it
e
Good for you! Good luck, it’s powerful
s
I want to thank every one. It's all working !!! I noticed that it's taking the file from my Eclipse. The thing I was confused, is that it says that it's completed when there was no files. I put the files and it picked them !!!! I even created a custom_record and it picked it also. Now I understand, thank you all again !!!!
👍 1