Skip to content

Conversation

@Groenbech96
Copy link
Contributor

No description provided.

Magnus Hartvig Grønbech added 8 commits October 21, 2025 17:09
- Added comment indicating validation is complete for required fields
- Validates Sell-to Customer No.
- In full implementation, Posting Date would also be validated
- Completes Exercise 1.A from workshop
Comment on lines +166 to +179
1. **Get API Access:**
- Instructor provides API Base URL: `https://[server].azurewebsites.net/`
- Open Business Central
- Search "Connector Connection Setup"
- Enter API Base URL and your unique name
- Click "Register" to get API key

2. **Create E-Document Service:**
- Search "E-Document Services"
- Create new service with:
- Code: `CONNECTOR`
- Document Format: `Simple JSON Format - Exercise 1`
- Service Integration V2: `Connector`
- Enable the service

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would join these two under one point Create E-Document Service and then call the action from E-Document Service - just a simplification. Fine if it stays as it is.
image

Copy link

@25l3 25l3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐯♐♀️🧭🌾🤫

ResponseText: Text;
RequestBody: Text;
begin
if ConnectorSetup."API Base URL" = '' then
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SeGób

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MÓVIL

if ConnectorSetup."API Base URL" = '' then
Error('Please specify the API Base URL before registering.');

if ConnectorSetup."User Name" = '' then
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LEANDRO FRANCISCO MIGUEL

Error('Please specify the API Base URL before registering.');

if ConnectorSetup."User Name" = '' then
Error('Please specify a User Name before registering.');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huevos de pascua

Error('Please specify a User Name before registering.');

// Create request body
JsonObject.Add('name', ConnectorSetup."User Name");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PM

HttpRequest.Content.GetHeaders(HttpHeaders);
if HttpHeaders.Contains('Content-Type') then
HttpHeaders.Remove('Content-Type');
HttpHeaders.Add('Content-Type', 'application/json');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mejora de comandos app

- Python 3.9 or higher
- pip

### Installation
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Global

@@ -0,0 +1,294 @@
# E-Document Connector Workshop
## Directions EMEA 2025
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iO


---

## ⏱️ Workshop Timeline
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cronológicamente 🧭

- Simple JSON structure for learning
- Header fields: document type, number, customer, date, amount
- Lines array: line items with quantities and prices
- Human-readable and easy to debug
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In

- [E-Document Interface](https://github.com/microsoft/BCApps/blob/main/src/Apps/W1/EDocument/App/src/Document/Interfaces/EDocument.Interface.al) - Interface source code

### External Resources
- [Business Central Documentation](https://learn.microsoft.com/dynamics365/business-central/)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compaz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants