注意
若您在 Salesforce AppExchange 中尋找 Asana 應用程式,可在這篇常見問題中深入瞭解棄用計劃。今後,客戶應使用 Salesforce 在 Asana 中的應用程式整合。
Salesforce 在 Asana 中的整合將我們的規則核心元件擴展至 Salesforce,以便您可以將 Salesforce 和 Asana 之間的工作流程自動化,並使 Asana 中的最新資料保持同步。
Asana 規則是可簡化例行性任務的自動化。規則由一個觸發因素和一個動作組成,分別是啟動規則的事件和由規則執行的動作。觸發因素的範例是「在 Salesforce 中建立潛在商機時」。動作的範例是「在特定 Asana 專案中建立任務」。
Salesforce 在 Asana 中的整合使用觸發條件 Salesforce 記錄已建立或更新,並提供許多可自訂的條件。可依據 Salesforce 物件類型 (例如機會、帳戶) 和特定欄位值 (包括數字、日期和選擇清單) 設定規則條件。
使用者可從 2 個 Salesforce 觸發因素中進行選擇:
請注意,記錄已建立或更新是應用於「建立任務並維持同步」動作的觸發因素。
設定觸發因素時,您可以指定執行該規則時應同時符合的特定條件。若規則由事件觸發,但未滿足指定條件,則規則不會執行。 例如,對於觸發條件 Salesforce 記錄已建立或更新,以下條件作為觸發條件的一部分受到支援:
範例:當商機 ARR 變更變更為 > $10,000 時,建立審查任務
請注意,條件是在 Salesforce 觸發因素中設定,即條件與觸發因素相關聯。無法將其設定為觸發因素的獨立條件。
請參閱「為特定商機階段建立任務」區段中的熱門實際範例。
Salesforce 以規則變數為基礎。變數是一種在規則動作中參考來自規則觸發因素的關鍵資料的方式。
例如,若選擇 Salesforce 觸發因素,則規則動作可以參照 Salesforce 機會 ARR。在「建立任務」等規則動作中,可使用動態變數對應 Salesforce 記錄中的欄位,以填入任務名稱、描述和自訂欄位。當規則由 Salesforce 中的事件觸發時,規則動作會從 Salesforce 中提取變數的值。
設定規則動作時,以下 Salesforce 欄位類型可作為變數,以便提取至 Asana 任務欄位:
| Salesforce 欄位類型 | Asana 欄位類型 |
| 字串 | 文字 (任務標題、描述、自訂欄位、評論) |
| 文字區域 | 文字 |
| 選擇清單 | 文字 |
| 日期、日期時間 | 日期/時間、文字 |
| 貨幣 | 數字、文字 |
| Int | 數字、文字 |
| 長整數 | 數字、文字 |
| 百分比 | 數字 (1%=1)、文字 |
| RTF 文字區域 | 未格式化文字 |
「建立任務並維持同步」動作與「Salesforce 記錄已建立或更新」觸發因素配對,以便透過對應 Salesforce 變數的規則動作,啟用從 Salesforce 欄位到 Asana 欄位的自動更新。當 Salesforce 欄位變更時,相應的 Asana 任務會自動更新,確保團隊隨時擁有最新資訊,而無需手動更新。
使用「建立任務並維持同步」動作時,Salesforce 欄位將與 Asana 欄位一對一對應。例如,「帳戶名稱」可以一對一對應至「任務名稱」這類文字欄位。不過,「建立任務並維持同步」動作不會更新文字和變數的串連,例如「帳戶:{Account Name}」。
若您僅想在商機達到特定階段 (例如「提案」或「協商」) 時建立並同步任務,則必須設定兩個獨立的規則,而非使用預設的「建立任務並維持同步」動作。使用標準預設動作不會正確同步個別階段的欄位。
此規則會監控特定階段的變更,並建立 Asana 任務。您可將此規則設定為在商機記錄達到目標階段時觸發,確保任務僅在管道中的正確時刻建立。
此規則會在背景針對所有機會執行,以便在任務已連結後保持欄位更新,無論機會接下來進入哪個階段。若沒有此規則,在最初建立任務後,欄位資料將不會保持目前狀態。
這兩個規則結合起來,可複製預設動作的行為,同時為您提供所需的階段特定控制。在特定機會階段觸發任務時,必須設定這兩個規則,才能使欄位同步正常運作。
Salesforce 系統管理員擁有在 Asana 中設定同步動作規則的必要權限。
不妨考慮一個規則,旨在每當在 Salesforce 中建立新商機時,在 Asana 中建立新任務,並將 Salesforce 商機欄位的值與其相應的 Asana 任務欄位同步。
Salesforce 商機的「名稱」和「ARR 變更」欄位將分別對應至 Asana 任務的「任務名稱」和「金額」欄位。若商機名稱變更為 XYZ,Asana 任務標題就會自動變更為 XYZ。同樣,Salesforce 中ARR 變更值的任何修改都會自動反映在 Asana 任務的「金額」欄位中。
雖然「建立任務並維持同步」動作對於為所有商機建立任務很有用,但您可能只想在商機達到特定階段 (例如「提案」或「談判」) 時才建立並同步任務。這需要設定兩個獨立的規則,而不是使用預設動作。
當您想要進行以下操作時,請使用兩個規則的方法:
重要提醒:Salesforce-Asana 欄位同步中不支援單選和複選自訂欄位。
此規則會在潛在機會達到您的目標階段時建立初始任務。
此規則可讓任務欄位與 Salesforce 資料保持同步
針對提案階段的機會。
規則 1:
規則 2:
此設定可確保僅在商機達到「提案」階段時才建立任務,同時在整個商機生命週期中保持所有相關欄位同步。
我們建議您與 Salesforce 系統管理員合作完成安裝步驟,並參閱此更詳細的安裝指南文件。
若符合以下條件,Asana 使用者可以建立並儲存規則:
使用者已透過 OAuth 獲授權進入其 Salesforce 帳戶。
使用者擁有以下 Salesforce 權限。我們建議您與 Salesforce 系統管理員合作,以設定這些權限:
自訂應用程式
執行流程
管理流程
透過中繼資料應用程式開發介面 (API) 功能修改中繼資料
啟用系統模式流程啟動
一位 Asana 使用者在滿足以下條件時,可以將 Salesforce 記錄連結至 Asana 任務:
使用者已透過 OAuth 獲授權進入其 Salesforce 帳戶。
使用者可存取 Salesforce 中的特定記錄。
資料透過 Salesforce 應用程式開發介面 (API) 整合安全地傳輸。存取已連結 Salesforce 資料的使用者權限遵循 Asana 基於任務存取的標準權限模型。
注意
This article has been AI-translated.
Send translation feedback.

These cookies are strictly necessary to provide you with certain features. For example, these cookies allow you to access secure areas that require registration and set your privacy preferences. Because these cookies are essential to providing services to you, they cannot be disabled. You can set your browser to block or alert you about these cookies, but it may cause some parts of the site to not work.
Third party trackers collect information used for analytics and to personalize your experience with targeted ads. Under the Virginia Consumer Data Protection Act, you have the right to opt-out of the sale of your personal data to third parties. You also have the right to opt out of targeted advertising related processing. You may exercise your right to opt out of the sale of personal data and targeted advertising by using this toggle. If you opt out, we will not be able to offer you personalized ads and we will stop sharing your personal information with third parties. For more information please see our Privacy Statement.
These cookies allow us or our third-party analytics providers to collect information and statistics on use of our services by you and other visitors. This information helps us to improve our services and products for the benefit of you and others.
These cookies, provided by our third-party advertising partners, collect information about your browsing habits, as well as your preferences for various features and services. They also provide us with auditing, research, and reporting to know when advertising content has been displayed and how successful the content has been. This information allows us and our third-party advertising providers to display relevant advertising content.
These cookies provide enhanced functionality, providing chat support, allowing you to more easily complete forms, personalizing content to your preferences, and selecting your communications preferences. If you do not enable these cookies, or choose to disable them in the future, that could impact your ability to use certain features.