Salesforce(セールスフォース)で先頭に 0 がある数値を扱うには、テキスト型項目として登録するか、数式項目で 0 を付加する方法があります。
Salesforce では、先頭に 0 が設定されている数値型項目は、登録の際に 0 を省略して登録されます。先頭に 0 が含まれるデータを Salesforce に登録したい場合、以下の 2 つの方法があります。
1. 項目をテキスト型項目データとし、文字列として登録
テキスト型項目データとする場合は、入力 CSV データも文字列にする必要があります。
2. 数値項目として登録後、数式項目を使用し任意の桁にまで 0 を付加
以下の数式で実現が可能です。
例:
IF( LEN( TEXT([数値項目])) < [桁数+1] , LPAD( TEXT([数値項目] ) , [桁数], "0"),TEXT([数値項目]))
[数値項目] … 0を付加したい項目
[桁数] … 数値に設定したい桁数
000386049

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.