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,
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.
But the code is failing while creating an object itself. So can not go to next line.
Hi,
Please try to add the following layer out of your code analytics.xxx.
if (analytics != null) { // your original operations } else { // other operations }
Holly Huffman
103
Muhammad Shahzad Sh...
96
Most Valuable Professional
Gerardo RenterÃa Ga...
51
Most Valuable Professional