0

論壇新手。我在啓動特定日期的工作流程時遇到問題。我想在用戶獲得新設備時從客戶那裏獲得反饋。SharePoint 2013 - 延遲日期發送的工作流程電子郵件

條件/操作 Ultrabook已部署到最終用戶=是 調查郵件已發送=標記以消除用戶接收多個電子郵件,以防將來行更新。 暫停直到調查分發日期 - 這是一個計算字段,它將採用部署日期併爲其添加14天。格式爲日期和時間 當前項目中的更新項目將「發送調查郵件」列更新爲「是」。

當14天到期時,我似乎無法得到調查結果,因此「調查分發日期」等於當前日期。我覺得我失去了一些東西......任何幫助將不勝感激。

階段:第1階段

If Current Item:Ultrabook deployed Y/N equals Yes 
and Current Item:Survey Email Sent equals No 
    Pause until Current Item:Survey Distribution Date 
    If Current Item:Survey Distribution Date equals (ignoring time) Today 
     Email Current Item:Recipient 
     Update item in Current Item 

過渡到舞臺 轉到結束工作流程的

Screenshot of Designer Workflow Code

回答

0

暫停,直到只需要的初始值「當前項目:調查發放日期」爲帳戶。在部署日期填寫調查分發日期的值後,也會更新,但暫停直到不會使用此值。

你會有某種循環功能。要做到這一點,最好的方法是使用「過渡到第二階段」(因爲它支持多個條件),並讓它「環回」到同一個階段的開始,如果所有的條件都滿足:

**Stage: WAITING** 

Pause for 1 days, 0 hours, 0 minutes 
Transition to Stage 
If Current Item:Ultrabook deployed Y/N equals Yes 
and Current Item:Survey Email Sent equals No 
and Current Item:Survey Distribution Date is greater than Today 
    Go to SENDING THE EMAIL 
Else 
    Go to WAITING 


**Stage: SENDING THE EMAIL** 

Email Current Item:Recipient 
Transition to stage 
Go to End of Workflow 
+0

非常感謝羅伯特。我可能需要一些幫助來實施你的建議,因爲我可以找到一種方法來「檢查」「當前項目:調查分發日期」的日期。 默認情況下,如果在部署列中沒有選擇日期,則「當前項目:調查分發日期」的值爲1900/01/13。只要安排了Ultrabook的部署日期,「當前項目」調查分發日期「字段中填充了一個有意義的值。基本上它是一個計算列,在部署日期上添加了14天,以便用戶在兩週後獲得調查結果。 – barnie206

+0

非常感謝。我不知道「暫停」。這現在工作很好。再次感謝您花時間發佈解決方案。非常感謝。 – barnie206

0

對不起,我沒有得到如何將圖片或代碼放入評論區域....非常令人困惑...

這是我使用的代碼。這有意義嗎?

Stage:Stage 1 
Loop: 1 
    The contents of this loop will run repeatedly while: Current Item:Survey Distribution Date is less than 1901-01-13 12:00:00 
     Pause until Current Item:Survey Distribution Date 
     If Current Item:Survey Distribution Date equals (ignoring time) Today 
     and Current Item:Survey Email Sent equals No 
     and Current Item:Ultrabook deployed Y/N equals Yes 
      Email Current Item:Recipient 
      Update item in Current Item 

過渡到舞臺 轉到結束工作流程的

相關問題