I can't seem to find anywhere in the documentation...
# sdf
d
I can't seem to find anywhere in the documentation, but is it possible to just deploy selected objects via SDF? for example if I need to make an update to a custom record but am in the process of unfinished dev for other objects within the SDF Project, I really only want to validate/deploy that one custom record xml
w
Whenever I’ve done this i’ve just made a new SDF project on the spot and added only the objects I want to update. It’s a hassle but there doesn’t seem to be a way around deploying everything at once! This is from experience in Webstorm - I know the controls can be a little different in Eclipse
d
cool, that's what I figured as a workaround but seems annoying for this common use-case.
seems like that is legitimate though, even when looking at the SDF CLI reference which seems to have shared functionality across both IDEs it didn't seem to have that option, unless I missed it
m
in 2019.1 you can selectively specify the objects/files to be deployed via the
delpoy.xml
file in the project. (previously, it just deployed everything regardless 😄 )
🤯 1
w
Thanks @mtsb I didn’t know it was possible at all. I think having the ability to partially deploy simply using the right-click menu would be useful but at least there’s this option
m
yeah. like @dbarnett said, i tend to just create a throw-away project and copy over the files i want to deploy there cause it’s often less work than constructing a
deploy.xml
(also, screwing up the deploy.xml modifications is potentially scary)
a
Yes! That's in our backlog 🙂
We want to add some functionality to dynamically create deploy.xml files so through a UI in WebStorm you can pick which objects you want to include in the deploy
e
but, unless I am missing something, for sure you can edit the deploy.xml file to specify objects or files to upload! simply remove the * and replace with specific info
Copy code
<deploy>
	<files>
		<path>~/FileCabinet/SuiteScripts/filename1.js</path>
		<path>~/FileCabinet/SuiteScripts/filename2.js</path>
	</files>
	<objects>
		<path>~/Objects/obj1.xml</path>
		<path>~/Objects/obj2.xml</path>
	</objects>
</deploy>
you can even omit the
<objects>
or
<files>
completely if you only wanted to deploy one or the other
a
Yes, that's correct