Loading
設定並維護零售執行
目錄
選取篩選

          沒有結果
          沒有結果
          以下是搜尋小祕訣

          檢查關鍵字的拼字。
          使用較常見的搜尋字詞。
          選取較少篩選條件以擴大您的搜尋。

          搜尋所有 Salesforce 說明
          設定計算後結果

          設定計算後結果

          您可以更新或覆寫計算步驟,包括與計算相關的所有變數。系統會在計算之後呼叫此使用者結束。

          必要版本

          提供版本:已啟用 Consumer Goods Cloud 的 Lightning Experience ProfessionalEnterpriseUnlimited Edition
          需要的使用者權限
          若要設定使用者結束:

          CGCloud 業務管理員

          CGCloud 零售業務管理員

          1. 進入 App Launcher,尋找並選取「使用者結束」。
          2. 按一下「新增
          3. 從「類型」下拉式清單中,選取「設定計算後結果」。
          4. 按一下「儲存」。
          5. 按一下「相關」索引標籤,然後按一下「新增」。
          6. 輸入查詢。
            使用多個使用者結束內容記錄來建構程式碼。例如,建構內容,讓一個記錄保留傳回變數名稱和切換陳述式的開頭。使用另一個記錄保留不同使用者結束識別碼的邏輯,以及另一個記錄以傳回結果或變數。
            排序順序 使用者結束內容 描述
            1
            var AffectedResults = {};
            
            switch(UserExitId) {
            

            宣告傳回變數及切換陳述式開頭

            2
            case "100_CalcResult_BasePrice_ext":
            
                if(Utils.isDefined(ProductAttributes[0].text1) && ProductAttributes[0].text1 === "Empower Cola 1,0 L PET"){
                  AffectedResults.currentConditionValue = 19.99;
                  AffectedResults.currentCalculationBase = 20;
                  AffectedResults.currentCalculationResult = AffectedResults.currentCalculationBase * AffectedResults.currentConditionValue;
                  AffectedResults.currentTotal = AffectedResults.currentCalculationResult;
                }
                break;
            
            處理使用者結束識別碼「100_CalcResult_BasePrice_ext」的邏輯
            3
            }
            return AffectedResults;
            
            關閉切換陳述式並傳回傳回變數
          7. 進入 App Launcher,尋找並選取「計算結構描述」。
          8. 選取計算結構描述,然後按一下「編輯」。
          9. 在「計算結構描述步驟」區段中,選取要套用至此使用者結束的計算步驟。例如,上述使用者結束內容適用於個案步驟 100。
          10. 在「使用者結束」區段中,輸入使用者結束識別碼,以將使用者結束套用至計算。例如,個案步驟 100 的使用者結束識別碼為 100_CalcResult_BasePrice_ext。
          11. 按一下「儲存」。
           
          正在載入
          Salesforce Help | Article