您位於此處:
在批次工作的檔案型與條件型處理之間選擇
建立批次工作時,您可以透過上載含特定記錄識別碼的檔案,或定義篩選記錄的條件來選取要處理的記錄。
您位於此處:
建立批次工作時,您可以透過上載含特定記錄識別碼的檔案,或定義篩選記錄的條件來選取要處理的記錄。
| 檢視支援的版本。 |
上載包含所要處理記錄唯一識別碼的 CSV 檔案。批次工作只會在您檔案中列出的記錄上執行。當您擁有要處理的特定記錄預先定義清單、從其他系統接收檔案或小組接收記錄需要更新的記錄、想要執行一次性作業而不建立複雜的篩選邏輯、想要讓使用者透過畫面流程上載檔案,或當您的組織收到外部系統的一般檔案上載時,此方法適用。
針對一次性作業,可快速設定檔案型處理,最適合臨時更新。您上載具有特定識別碼的 CSV 檔案,且檔案最多可包含 10,000 個記錄識別碼。記錄清單是固定的,這表示批次工作會完全處理您在檔案中指定的記錄。當您有記錄識別碼的特定清單,或您需要設定比建立篩選條件更快的一次性更新時,請使用此方法。
使用條件來識別要處理的記錄。您定義篩選條件,且批次工作會尋找所有相符的記錄。當記錄共用通用欄位值讓記錄易於識別、您需要依照一致的邏輯執行循環作業、您的記錄集隨著時間變更且您想要工作自動包含新的合格記錄,或您沒有預先定義的特定記錄識別碼清單時,此方法適用。
以條件為基礎的處理需要定義篩選邏輯,但最適用於循環作業。記錄選取項目會根據目前資料為動態,這表示批次工作會查詢資料庫以尋找符合您條件的所有記錄。記錄限制由批次大小設定決定,而非固定檔案大小。當您要定期執行作業、當您的記錄共用通用欄位值使其容易自動尋找時,或當您需要每次根據目前欄位值彈性處理不同的記錄時,請使用此方法。

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.