Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Dynamics 365 Realtime Marketing Event integration using c# plugin

Posted on by Microsoft Employee

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:
pastedimage1629876168181v1.png

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 

  • Suggested answer
    Nya Profile Picture
    Nya 29,056 on at
    RE: Dynamics 365 Realtime Marketing Event integration using c# plugin

    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics 365 Realtime Marketing Event integration using c# plugin

    But the code is failing while creating an object itself. So can not go to next line.

  • Suggested answer
    Nya Profile Picture
    Nya 29,056 on at
    RE: Dynamics 365 Realtime Marketing Event integration using c# plugin

    Hi,

    Please try to add the following layer out of your code analytics.xxx.

    if (analytics != null)
    {
    // your original operations
    }
    else
    {
    // other operations
    }

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.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans