SalesForceのDataLoaderの自動化
DataLoaderの自動化でググると他のツールを入れないと自動化できないみたいな記事に当たるけれども、別にそんなことは無い。
http://www.terrasky.co.jp/blog/?p=124
今ではDataLoader自身をコマンドラインから起動させることができる。
https://help.salesforce.com/apex/HTViewHelpDoc?id=command_line_intro.htm&language=ja
このデータローダーはjava+Spring3.Xで作られているみたいだけれども、サンプルの設定ファイルがSpring2.0のDTDで作成されているようでその後に増えた機能を全く使いこなせていない。
使いたい場合は、xmlの上の方を以下のように書き換えてあげる必要がある。
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans>
↓
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd">
(ヽ´ω`)