Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[E-Document Connector] Logiq E-Document Connector #27562

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tstefanovicius
Copy link

@tstefanovicius tstefanovicius commented Oct 30, 2024

E-Documents connector interface implementation between Business Central and Logiq

Work Item(s)
Fixes #27058
Fixes AB#541809

@tstefanovicius
Copy link
Author

@microsoft-github-policy-service agree company="Companial"

@github-actions github-actions bot added the linked Issue is linked to a Azure Boards work item label Oct 30, 2024
@tstefanovicius tstefanovicius changed the title [E-Document Connector] Logiq E-Document Connector #27101 [E-Document Connector] Logiq E-Document Connector Oct 30, 2024
@tstefanovicius
Copy link
Author

New pull request instead of #27101

@JesperSchulz JesperSchulz added the Integration GitHub request for Integration area label Oct 31, 2024
@Groenbech96
Copy link
Contributor

Thanks for fixing the issue.
Please move the code to EDocumentConnectors

  • Create app for the connector.
  • Create app for the test automation.

Feel free to look at Avalara as the example.

In the mean time we will start looking at the code.

Copy link
Contributor

@Groenbech96 Groenbech96 left a comment

Choose a reason for hiding this comment

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

Some initial comments.
Overall the code is good quality and i will continue review.

Please see comment about moving to seperate app :)


enum 6380 "Logiq API Engine"
{
Extensible = false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Mark it as internal.

@@ -0,0 +1,19 @@
namespace Microsoft.EServices.EDocumentConnector.Logiq;

enum 6380 "Logiq API Engine"
Copy link
Contributor

Choose a reason for hiding this comment

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

Dont prefix with Logiq

@@ -0,0 +1,182 @@
namespace Microsoft.EServices.EDocumentConnector.Logiq;

codeunit 6380 "Logiq Auth"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move the code to EDocumentConnectors

Create app for the connector.
Create app for the test automation.
Feel free to look at Avalara as the example.

In the mean time we will start looking at the code.

ResponseMessage: HttpResponseMessage;
AccessToken, RefreshToken : SecretText;
AccessTokExpires, RefreshTokExpires : DateTime;
AuthenticationFailedErr: Label 'Logiq authentication failed. Please check the user credentials.';
Copy link
Contributor

Choose a reason for hiding this comment

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

Labels needs to be on global var.


internal procedure CheckUserCredentials(var LogiqConnectionUserSetup: Record "Logiq Connection User Setup")
var
NoSetupErr: Label 'No user setup found. Please fill the user setup in the Logiq Connection User Setup page.';
Copy link
Contributor

Choose a reason for hiding this comment

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

Labels to global var


page 6380 "Logiq Connection Setup"
{
Caption = 'E-Document External Connection Setup';
Copy link
Contributor

Choose a reason for hiding this comment

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

Different name. Use connector name

DataClassification = CustomerContent;
fields
{
field(1; PK; Code[10])
Copy link
Contributor

Choose a reason for hiding this comment

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

20 is standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Integration GitHub request for Integration area linked Issue is linked to a Azure Boards work item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BC Idea]: Enable connector with Logiq for E-Documents
3 participants