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

Notifications

Announcements

No record found.

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
    95,729 Super User 2025 Season 2 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,202 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans