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

Campaign Member Status

Does anyone have an idea how to automatically update the Campaign Member "Status" field when you click on the Convert Lead or Create Opportunity button from the Campaign Member page?  When the Opportunity is created, I want to automatically update the Status of the originating Campaign Member record to "Converted".  

How do you build a trigger for this?  The whole Campaign and Campaign Member object is very tricky.  I want to be able to run a report and determine which Campaign Member record are being converted to Opportunities.