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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
ManoVerse 192 Super User 2026 Season 1
11manish 129
CU11031447-0 100