Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
5
Help us understand the problem. What is going on with this article?
@a_kuratani

Salesforceにおける承認プロセスの設定取得とデプロイ

More than 5 years have passed since last update.

少し前のバージョンから承認プロセスの取得・デプロイがForce.com Migration Toolでできるようになっていたのを思い出したので。
管理パッケージをテストする際にアンインストール、インストールを繰り返す場合に便利です。

package.xml
<project name="Sample" basedir="." xmlns:sf="antlib:com.salesforce">
    <property file="build.properties"/>
    <property environment="env"/>

    <target name="deploy">
        <sf:deploy
            username="${sf.username}"
            password="${sf.password}"
            serverurl="${sf.serverurl}" 
            deployRoot="src" />
    </target>

    <target name="save">
        <mkdir dir="code"/>
        <sf:retrieve
            username="${sf.username}"
            password="${sf.password}"
            serverurl="${sf.serverurl}"
            retrieveTarget="code"
            unpackaged="src/package.xml"/>
    </target>
</project>
src/package.xml
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>ApprovalProcess</name>
    </types>
    <version>30.0</version>
</Package>```
5
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
5
Help us understand the problem. What is going on with this article?