You need to sign in to do that
Don't have an account?
raz r
can we write a trigger on AccountTeamMember ?Please help do we need to do any settings to write a trigger on AccountTeamMember
can we write a trigger on AccountTeamMember ?Please help do we need to do any settings to write a trigger on AccountTeamMember
It is not allowed to write trigger on AccountTeamMember.
If realy needed then explain your requirements, might be we will help you.
Thanks
Niraj
Please help me on this requirement.
Trigger is not possible, but you can achive your requirememt by writting a Batch apex class and schedule it for frequently like on every 15 minutes.
Like That:
System.schedule('Scheduled Job 1', '0 0 * * * ?', new YourBatchClass());
System.schedule('Scheduled Job 2', '0 15 * * * ?', new YourBatchClass());
System.schedule('Scheduled Job 3', '0 30 * * * ?', new YourBatchClass());
System.schedule('Scheduled Job 4', '0 45 * * * ?', new YourBatchClass());
Thanks
This batch class will not run in exact real time,. It will execute on every 15 mins and take all those accounts which created or updated just before 15 mins back.
If you want you can execute for existing acc records for that you need to remove this where codintion (Optional) from query string:
AND LastModifiedDate >=: whenModified
I have some small doubt asking and as per my assumption writing a batch class:
Q: Is this a picklist/ multiselect picklist/text field, Because might be an account have more that one AccountTeamMember and each will associated with a Role.
Assumption:
I am taking as latest AccountTeamMember and puting its role into Text field(Manager__c(Text));
Considering your custom object: TestObject__c, and fields: Manager__c, Account__c And run this following script from developer console.
Note: Might be some update needed in code according to your requirements, and Try for that.
Plz let me know if solution works for you.
Thanks
Niraj
Is this solved your problem??