Business Central Sandbox for learning AL dev auth issue

Miklos_Hollender
Member Posts: 1,598
First step, signing up for an online Sandbox. Interestingly it does not use my existing Microsoft Account, but new username and password. OK. Sandbox works, I can enter a sales order etc. (not a good UI but whatever). Install VSCode. AL!Go. Pops up a window that asks for not this new username and password, but for the Microsoft Account. Which is not linked to the Sandbox at all. Aaaargh. Any ideas? This would be easiest way for learning AL coding.
Then trying to local Docker container stuff. One of the available documentation says click on the lightbulb or magnified glass icon and type sandbox container (hosted). OK. It says it is only available in the production environment, not in the online sandbox.
OK. Another docu says it is "docker pull 3G blahblah" the other one the same with 4G. Will try this, but is this supposed to work?
A third docu says use NavContainerHelper. I do. One parameter it wants is licencefile. What licencefile? We are a customer, we definitely have an Application Designer licence for C/AL programming, but that is for NAV2017, for this BC we have no licence. But I thought a sandbox dev environment is free. All I want is learning how I am gonna customize the damn thing if we ever upgrade from NAV to BC although I think users would kill me if they had to enter 30 sales orders a day on this GUI but whatever.
Go with the docker pull thing?
Then trying to local Docker container stuff. One of the available documentation says click on the lightbulb or magnified glass icon and type sandbox container (hosted). OK. It says it is only available in the production environment, not in the online sandbox.
OK. Another docu says it is "docker pull 3G blahblah" the other one the same with 4G. Will try this, but is this supposed to work?
A third docu says use NavContainerHelper. I do. One parameter it wants is licencefile. What licencefile? We are a customer, we definitely have an Application Designer licence for C/AL programming, but that is for NAV2017, for this BC we have no licence. But I thought a sandbox dev environment is free. All I want is learning how I am gonna customize the damn thing if we ever upgrade from NAV to BC although I think users would kill me if they had to enter 30 sales orders a day on this GUI but whatever.
Go with the docker pull thing?
0
Best Answer
-
Hi Miklos,However, it says web client is http://test/NAV but there is nothing there.
Ran into this issue myself. Try using the Container-IP "http://172.xxx.xxx.xxx/NAV" or set the- updateHosts
flag when running New-NavContainer, which sets a hosts entry so you can access via container name.
/WisaAustrian NAV/BC Dev5
Answers
-
NavContainerHelper is an "advanced" docker pull - it downloads, prepares and starts the docker image, sets up ports, license, database (if external SQL), etc.
You're going to need a valid license to do any customizations. You can try pointing to your NAV 2017 license, but it's most likely not going to work. If you don't specify a license, it will use standard CRONUS license, which has a LOT of limitations0 -
Thanks. Any idea about the first one? Why Visual Studio Code wants Microsoft Account when the Online Sandbox as an entirely separate signup and password.0
-
NavContainerHelper is an "advanced" docker pull - it downloads, prepares and starts the docker image, sets up ports, license, database (if external SQL), etc.
You're going to need a valid license to do any customizations. You can try pointing to your NAV 2017 license, but it's most likely not going to work. If you don't specify a license, it will use standard CRONUS license, which has a LOT of limitations
I managed to get to the point where New-NavContainer really does something. However, it says web client is http://test/NAV but there is nothing there. Well, then I found a desktop shortcut to the powershell prompt of the container, found there stuff like .\start.ps1 and .\navstart.ps1 but in both cases the web client link was left empty. Then I found Start-NavContainer in powershell, but it says "waiting for container test to be ready" forever.0 -
Hi Miklos,However, it says web client is http://test/NAV but there is nothing there.
Ran into this issue myself. Try using the Container-IP "http://172.xxx.xxx.xxx/NAV" or set the- updateHosts
flag when running New-NavContainer, which sets a hosts entry so you can access via container name.
/WisaAustrian NAV/BC Dev5 -
Great, thanks! After logging in nothing happened for minutes, but then I got the GUI. At least I can test functionality. I will need a licence for developing. One last question. What do I need, licence or similar vise, to be able to see error messages of the base app in the VSCode debugger? I mean without that even basic user support would not really be possible...0
-
Hello @Miklos_Hollender ,
You can develop using the 50000..99999 range for free if your target is Cloud or Extension, without any license.
You can use the AL:Go! command to create a simple app and test it.
Regards.0 -
Thank you, ftornero, but the issue is -includeAL requires a licence. And developing extensions without reading a lot of the standard code would be a bad idea. Very bad. It is like when in the old times some Java programmer without reading the standard C/AL code would have started developing: big mistakes and the whole thing looked "unnavisionic".
Besides, extensions are a luxury. The first job of a consultant is to ensure the standard app is usable for doing the mandatory regulatory compliance accounting. This means 1) supporting users who get error messages by checking the explanation with the debugger 2) fixing Microsoft's bugs by customizations. In the mandatory Italian electronic invoicing we had a friendly competition between me and our consulting company about who finds and fixes more bugs0 -
I just realized the debugger works even without -includeAL and a licence! https://navitips.blogspot.com/2019/08/learning-business-central-and-al-part-2.html0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions