Notifications
Announcements
No record found.
Hello Experts,
I am trying to use c# plugin to register Realtime marketing event. But I am getting error : Object reference not set to an instance of an object at line where I initiate Analytics object.Has anyone does this before? Is there any work around apart from plugin:Event is : On create of Order.
Readymade Code snippet I got in the event is:
Relevant microsoft documentation is here: https://docs.microsoft.com/en-us/dynamics365/marketing/real-time-marketing-custom-events
Please let me know if anyone has done this.
Thank you in advance
Hi,
Please try to add the following layer out of your code analytics.xxx.
if (analytics != null) { // your original operations } else { // other operations }
But the code is failing while creating an object itself. So can not go to next line.
Would you please specify which version of security protocol you're using in your code?
You may try to adjust it to TLS 1.2 if it is another version.
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 108 Super User 2025 Season 2
Jimmy Passeti 50 Most Valuable Professional
Gerardo RenterÃa Ga... 49 Most Valuable Professional