Loading
透過 Salesforce Flow 自動化業務流程
轉移保留動作

轉移保留動作

在 Omnichannel Inventory 中,在位置或位置群組之間轉移一或多個庫存預留。此動作會減少來源處的預留數量,並在目的地增加預留數量。其不會變更實體數量。

必要版本

提供版本:Lightning Experience
檢視支援的版本。
此功能需要 Salesforce Omnichannel Inventory 附加元件。若要購買,請連絡您的 Salesforce 帳戶主管。

在 Flow Builder 中,將「動作」元素新增至您的流程。選取「Omnichannel 庫存服務」種類,然後搜尋「Omnichannel 庫存服務轉移預留」。

備註
備註 將流程的執行階段 API 版本設定為 52.0 或更新版本。

設定輸入值

使用流程前期中的值設定輸入。

輸入參數 描述
Omnichannel 庫存服務轉移預留輸入

此輸入是類別 ConnectApi.OCITransferReservationInputRepresentation 中 Apex 定義的變數。

變數包含以下欄位。

  • allOrNothingTransferId—選擇性。控制單一的失敗轉移是否會取消 transferRecords 清單中其他所有的轉移。
    • 若要允許 transferRecords 清單中的某些轉移在其他轉移失敗時成功,請勿設定此值。
    • 若要在 transferRecords 清單中有任一轉移失敗時取消清單中所有的轉移,請將此值設定為 UUID。識別碼必須是唯一的,但沒有其他用途。
  • transferRecords—類別 ConnectApi.OCITransferReservationSingleInputRepresentation 中最多 100 筆 Apex 定義的變數清單。每個變數皆代表庫存轉移,且具有下列欄位。
    • actionRequestId—識別要求的 UUID。若要識別哪些動作成功或失敗,請使用輸出變數中的動作要求識別碼。
    • externalRefId—選擇性。外部參照識別碼。
    • fromLocationGroupIdentifier—轉移預留的位置群組識別碼。需要 fromLocationGroupIdentifierfromLocationIdentifier,但無法同時使用兩者。
    • fromLocationIdentifier—轉移預留的位置識別碼。需要 fromLocationIdentifierfromLocationGroupIdentifier,但無法同時使用兩者。
    • ignoreAvailabilityCheck—如果為 true,即使接收位置沒有足夠的可用庫存,仍會強制轉移。預設值為 false。
    • quantity—待轉移的產品預留數量。
    • stockKeepingUnit—待轉移產品預留的「庫存單位」(SKU)。
    • toLocationGroupIdentifier—接收預留的位置群組識別碼。需要 toLocationGroupIdentifiertoLocationIdentifier,但無法同時使用兩者。
    • toLocationIdentifier—接收預留的位置識別碼。需要 toLocationIdentifiertoLocationGroupIdentifier,但無法同時使用兩者。

儲存輸出值

輸出參數 描述
Omnichannel 庫存服務轉移預留輸出

此值是類別 ConnectApi.OCITransferReservationOutputRepresentation 中 Apex 定義的變數。

變數包含以下欄位。

  • errors—類別 ConnectApi.OCITransferReservationErrorOutputRepresentation 中 Apex 定義的變數清單。每個變數皆代表傳回的錯誤,且具有下列欄位。
    • details—類別 ConnectApi.OCITransferReservationSingleOutputRepresentation 中 Apex 定義的變數。每個變數皆代表傳回的錯誤,並包含輸入中的以下欄位:
      • actionRequestId—可識別失敗要求的 UUID。
      • externalRefId—外部參照識別碼。
      • fromLocationGroupIdentifier—轉移預留的位置群組識別碼。
      • fromLocationIdentifier—轉移預留的位置識別碼。
      • ignoreAvailabilityCheck—此通話是否忽略在收到該預留之位置處的可用性資料。
      • quantity—待轉移的產品預留數量。
      • stockKeepingUnit—待轉移的產品預留的 SKU。
      • toLocationGroupIdentifier—預期接收預留的位置群組識別碼。
      • toLocationIdentifier—預期接收預留的位置識別碼。
    • errorCode—錯誤碼。
    • message—錯誤詳細資料 (若有的話)。
  • success—指出轉移是否成功。

若要設定「Omnichannel 庫存服務轉移預留輸入」:

  • 針對每個要轉移的預留,使用「指派」元素設定 ConnectApi.OCITransferReservationSingleInputRepresentation 變數上的 actionRequestIdexternalRefIdfromLocationGroupIdentifierfromLocationIdentifierquantitystockKeepingUnittoLocationGroupIdentifiertoLocationIdentifier 欄位值。
  • 使用「指派」元素將 ConnectApi.OCITransferReservationSingleInputRepresentation 變數新增至 ConnectApi.OCITransferReservationInputRepresentation 變數上的 transferRecords 欄位。
  • 使用「指派」元素設定 ConnectApi.OCITransferReservationInputRepresentation 變數上的 allOrNothingTransferId 欄位。
  • 在動作輸入中使用 ConnectApi.OCITransferReservationInputRepresentation 變數。

另請參照:

 
正在載入
Salesforce Help | Article