Skip to main content

Notifications

Announcements

No record found.

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

Event passes for marketing

Posted on by 32

It it possible to have active Event passes that are available only to internal personnel, and not shown to the clients who visit the event registration portal?

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Event passes for marketing

    Hi Imad,

    Please let me know whether your problem could be solved.

    Regards,

    Clofly

  • Suggested answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Event passes for marketing

    Hi Imad,

    I havn't Portal to host event website, but I thought it could be easily achieved by customization with code.

    I have made a customization that add a customized tab in before, these tab elements are located in event.registration.html.

    pastedimage1574148396683v2.png

    In the process, I found that those tabs display are controlled by Event API back-end,

    as Pass information for example, it's controlled by showPasses variable.

    pastedimage1574148747884v3.png

    Then in event.component.ts, the variable is boolean type.

    pastedimage1574148881200v4.png

    the pass information tab will appear if callback data from Event API back-end has valid pass information for current event.

    pastedimage1574149014009v5.png

    Now we know how to control the tab display, in your scenario,

    you could define a boolean variable userAuthenticated, and by default is false:

    pastedimage1574149226125v6.png

    add condition that whether user has logged to set the variable to true, and associate the variable to showPasses,

    then only user who has logged could see the Pass information tab.(my screenshot code is just demo)

    pastedimage1574149384203v7.png

    Due to my event website hasn't sign in feature, so you could read articles below to get current user information, then replace my demo code with user identity request code.

    Article 1 revealed that liquid js is still available in event portal, so you could try to use " '{{ user.Id }}'; " to get whether user has logged.

    https://pkoval.com/2019/04/07/extending-dynamics-marketing-event-management-portals/

    Or try to request Event own api to get logged user information: GET/users/authenticated

    https://docs.microsoft.com/en-us/dynamics365/marketing/developer/user-authentication-events-api#retrieving-information-of-authenticated-user

    You can find all event api in the doc.

    Regards,

    Clofly

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans