I would like to automate sales force package installation using python. In my day to day activity i have been spending more time in this scenario. It will be of great help if some one can throw some pointers related to this.
Thanks, Balaji.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI would like to automate sales force package installation using python. In my day to day activity i have been spending more time in this scenario. It will be of great help if some one can throw some pointers related to this.
Thanks, Balaji.
It is possible to install managed packages from the appExchange using the metadata api / ant. If you want to test it out, you can try deploying this to one of your orgs: (installs Quote of the Day)
./build.xml
<project name="Sample usage of Salesforce Ant tasks" default="test" basedir="." xmlns:sf="antlib:com.salesforce">
<property file="build.properties"/>
<property environment="env"/>
<target name="installQuoteOfTheDay">
<sf:deploy username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" deployRoot="dirName"/>
</target>
</project>
./dirName/package.xml
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>QOTD</members>
<name>InstalledPackage</name>
</types>
<version>29.0</version>
</Package>
./dirName/installedPackages/QOTD.installedPackage
<?xml version="1.0" encoding="UTF-8"?>
<InstalledPackage xmlns="http://soap.sforce.com/2006/04/metadata">
<versionNumber>1.11</versionNumber>
</InstalledPackage>
Of course you could also develop a tool using python to perform the deployment through the Metadata API if you don't want to use the Ant Migration Tool.
To install your managed package, you would just have to replace QOTD
(Quote of the Day's namespace) with your package's namespace.