Hi,
You refer the wrong object in the object id.
Bonus: You can also improve the readability of your code by renaming your variables.
If the error persists, can you share the error log ?
Thankyou for replay
Add null check condition in MoveTheNotes method before for each on EntotyCollection
if(opportunity!=null)
Get annotation returns Notes but you are naming the EntotyCollection object variable to Opportunity, please rename to Notes for better readability
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 109 Super User 2025 Season 2
MVP-Daniyal Khaleel 97
#ManoVerse 56