|
|
憨厚的紫菜汤 · GitLab application ...· 1 月前 · |
|
|
帅呆的篮球 · 子查詢 (SQL Server) - ...· 1 月前 · |
|
|
至今单身的小蝌蚪 · UPDATE - Azure ...· 1 月前 · |
|
|
完美的稀饭 · 我可以使用libcurls ...· 1 年前 · |
|
|
腼腆的皮带 · jupyter ...· 2 年前 · |
|
|
非常酷的红茶 · 全文搜索引擎选 ElasticSearch ...· 2 年前 · |
|
|
腹黑的槟榔 · Nodejs+socket.io搭建WebR ...· 2 年前 · |
Before going that far, I certain that, You can write a Process Builder on Task to look up its status and create an action to update the related records to selected the account and update it.
Search for the Process Builder in the Setup > Quick Find. Its' a wizard that'll let you pick your Object (Task) and then the corresponding acttions.
I believe this should work for you case.
trigger task_After on Task (after insert) List<Account> AccountsToUpdate = new List<Account>(); for (Task t: Trigger.new) if (t.Status=='Completed') Account a = new Account(Id=t.WhatId); a.Account_completion_Status = t.Status; AccountsToUpdate.add(a); try { update AccountsToUpdate; } catch (system.Dmlexception e) { system.debug (e);