Skip to main content

Notifications

Announcements

No record found.

Customer Insights - Journeys forum

Event Management Event Api issue

Posted on by 15

At present, got an issue with the event api request(.../api/events/event/?readableEventId={readableEventId}). But there are no error before.

correlationId: "65f53267-f43c-4fd3-9ca3-40da565e474c"

errorMessage: "There was an issue with the request. See plug-in trace logs for further details."

statusCode: 500

type: "InternalServerError"

  • ShravanSuri Profile Picture
    ShravanSuri 1,255 on at
    RE: Event Management Event Api issue

    Hey Zeozip - when you say that the newest version uses the old API - have you updated the event website as well (after upgrading D365 for Marketing?) - Here is the link to the docs with the latest version of the sample website - docs.microsoft.com/.../event-management-web-application

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Event Management Event Api issue

    Hi Zoezip,

    The new api requires us to make a registration with hosting server URL in Settings > Web Application, then send request with its generated apiEndpoint and token in new api style.

    My marketing application is trial version and there is no event website binding to the portal,

    so currently I have no apporoach to portal style API.

    I will give you a reply as soon as I upload local files to Portal.

    In addition,

    could you share me did you write a custom event api for problem solving?

    And attribute 'msevtmgt_allowanonymousregistrations' is an existing attribute for Event entity,

    while "adx_" is for entities in portal(web page etc),

    you could try add msevtmgt_allowanonymousregistrations attribute for your msevtmgt_event entity, or try your own custom api method as you mentioned in previous.

    Hope it helps.

    Best Regards,

    Leo

  • Zoezip Profile Picture
    Zoezip 15 on at
    RE: Event Management Event Api issue

    Thanks, I have wrote a custom event api to solve the problem, cause I still can not use this new api to get the data.

    And I have noticed that the newest version still using the old api.

    Capture1.PNG

    In addition, when do the event registration by using default event register api I also got an error message.

    2045.Capture.PNG

    Capture3.PNG

    However, the attribute 'msevtmgt_allowanonymousregistrations' should be 'adx_allowanonymousregistrations', but the api is not editable.

  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Event Management Event Api issue

    Hi Zoezip,

    It seems that Your request URL might have some issue, therefore the event server returns such error.

    Could you let me know which end do you work on with this request? 

    By plug-in back-end or HTML front-end?

    If it's plug-in, please share screenshot of plug-in trace logs,

    find it in Settings > Customization > Plug-In Trace Log.

    My suggestion is below:

    From the official doc,

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/marketing/developer/using-events-api#authentication

    It recommends us to work with new Event Management API 

    Please enable useRestStack variable to True in environment.ts whatever your event hosting server is(portal or external custom).

    I made a successful request with URL below:

    apiEndpoint/.../Ted_Contoso

    , and Ted_Contoso is readable event ID parameter. 

     123.jpg

    You can find full API reference with new style syntax from this doc:

    https://go.microsoft.com/fwlink/?linkid=2042224

    In addition, if your issue still exists with new API, please share me screenshot of where did it take place.

    Regards,

    Leo

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans