3

I am trying to deploy survey force app using changeset from one sandbox to another but it is throwing an error that managed package can not be moved using change sets. What is the best approach to move it from sandbox to sandbox and sandbox to prod.

2

You could use the ANT based Force.com Migration Tool to automate installing the required packages. In particular, look at <installPackage>.

<project name="installdemo" default="build" basedir=".">
    <!-- Load standard properties -->
    <property file="${basedir}/build.properties"/>    
    <!-- Import macros around sf:deploy to install/uninstall packages -->
    <import file="${basedir}/lib/ant-salesforce.xml"/>
    <!-- Default target -->  
    <target name="build">     
        <!-- Install the package with namespace packagea -->
        <installPackage namespace="packagea" version="1.0" packagePassword="fred1234"
           username="${sf.username}" password="${sf.password}"/>
        <!-- Uninstall the package with namespace pacakgea -->
        <uninstallPackage namespace="packagea"
           username="${sf.username}" password="${sf.password}"/>     
    </target> 
</project>

That example is from Andrew Fawcett's blog post - “Look ma, no hands!” : Automating Install and Uninstall of Packages!. That post also includes an example of installing packages from Apex via the Metadata API.

0

As managed packages are black box of functionality/features which can not be customized(as in unmanaged packages), it would be best to install them separately on different organizations(sandboxes/dev/production instances).

  • 1
    you mean I had to deploy in each sandbox like Dev, Qa, UAT and Prod. It is too much of doing repeated task tight?, I expected the ANT tool may help in deploying the Managed Packages. – Suresh Jun 21 '16 at 18:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.