web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Can't pass the Get started with development in Microsoft Dynamics 365 Business Central module.

(0) ShareShare
ReportReport
Posted on by 5

Hi,

i follow step by step with the course, and at the end it doesn't work as it should be.

Every time I write code to activate the "reward system" im getting the "Activation failed. Please check the activation code you entered." error.

But it SHOULD pass any 14 alphanumeric code i write (because of the "DummySuccessResponseTxt"

Can anyone help with that?

PS. The code is the same as in the module.

pastedimage1676526849810v1.png

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    98,455 Super User 2026 Season 1 on at

    Hi, You can try debugging it so you can find the problem quickly.

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-debugging

    Thanks

    ZHU

  • Community member Profile Picture
    2 on at
    Even with debugging I can't figure out why this code
                        if CustomerRewardsExtMgt.ActivateCustomerRewards(ActivationCode) then
                            NextStep(false)
                        else
                            Error('Activation failed. Please check the activation code you entered.');
     
    just won't return true in the example from microsoft...
  • Mirnaj99 Profile Picture
    2 on at
    I'm facing the same issue. Did you find the problem ?
  • Suggested answer
    PB-02071127-0 Profile Picture
    6 on at
    Hi, 
    I have followed the same example and To make it work you must add the information in the database directly. In the table Activation Code Information.
    Here an example
     
  • Jun Wang Profile Picture
    8,208 Moderator on at
    Is this a addon or customization? 
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,850 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,045 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans