function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
List<OpportunityContactRole> oContactRoles = new List<OpportunityContactRole>(contactRoleMap.get(oppy.id)); if(oContactRoles!=NULL && !oContactRoles.isempty()){ oppy.ContactRoleCount__c = oContactRoles.size(); //return the map size }
you will get it
Refer the below blog you get some idea about your task,
http://www.oyecode.com/2012/01/salesforce-trigger-to-count-contact.html
http://salesforce.stackexchange.com/questions/25622/trigger-that-counts-how-many-contact-roles-have-a-specific-role-on-an-opportunit
Thanks,
Vijay
I am having issue in the below link for below code -
http://www.oyecode.com/2012/01/salesforce-trigger-to-count-contact.html
Code -
I am getting oppy variable undefined. Can u check and let me know how to resolve the issue.
Regards