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

  • Jun Wang Profile Picture
    7,629 Super User 2025 Season 1 on at
    Can't pass the Get started with development in Microsoft Dynamics 365 Business Central module.
    Is this a addon or customization? 
     
     
  • Suggested answer
    PB-02071127-0 Profile Picture
    6 on at
    Can't pass the Get started with development in Microsoft Dynamics 365 Business Central module.
    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
     
  • Mirnaj99 Profile Picture
    2 on at
    Can't pass the Get started with development in Microsoft Dynamics 365 Business Central module.
    I'm facing the same issue. Did you find the problem ?
  • Community member Profile Picture
    2 on at
    Can't pass the Get started with development in Microsoft Dynamics 365 Business Central module.
    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...
  • Suggested answer
    YUN ZHU Profile Picture
    79,158 Super User 2025 Season 1 on at
    RE: Can't pass the Get started with development in Microsoft Dynamics 365 Business Central module.

    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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,272 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,931 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans