For one of the customization, we have the following requirement, facing an error with the implementation.
Following represents the requirement, the Code used, and the error we are getting. Could you please review and suggest to us the recommended way to solve the error
It is in the development stage so we couldn't provide instance details.
We have to maintain a list of duplicate Opportunities which are with the same subject. And while creating a new Opportunity, we need to close all the existing linked/duplicate opportunities.
Hence we are trying to call the CloseAsLost action from code in the Persist method and facing an error.
Could you please suggest.
Code Snippet Used:
Thanks & Regards,