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

Formula Help

I have a custom object Engage Activity related to Contacts and campaign object. Any time contact take some action under a campaign his activity is logged in Engage activity. Under certain condition at one time he can take n number of actions of same type at same time . I want to score the actvity of that contact but only once per day per campaign. How can I do it ? Any suggestions.
SonamSonam (Salesforce Developers) 
Reading the description, I understand this would be possible through trigger on the custom Object Engage Activity. you will have to write an after insert trigger such that:
1)When the Activity is logged - it checked the contact and the campaign related to it
2)Updates the score field on object(where it is created)

how to create a trigger: