function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ghulam ChaudharyGhulam Chaudhary 

Trigger on Tasks to display only related contacts to a particular Account when create a new task

Hi Everyone,

I am new in salesforce development and I want to create a trigger on Task, when I create a task and Choose an Account, after choose an Account and now I choose a Contact then Contact lookup only display  contacts in lookup window that are related to that particular account rather than all contacts related to all accounts.

I need your help, please suggest me.


Hi Ghulam,

This cannot be implemented by using triggers. Triggers are invokved when any DML activity is performed on your object. In your scenario there are no DML activity involved. 

Ghulam ChaudharyGhulam Chaudhary
Hi APat,
Thanks for your help,but any suggestion to implement this...