-
Notifications
You must be signed in to change notification settings - Fork 622
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
base: main
Are you sure you want to change the base?
Conversation
@microsoft-github-policy-service agree company="Companial" |
New pull request instead of #27101 |
Thanks for fixing the issue.
Feel free to look at Avalara as the example. In the mean time we will start looking at the code. |
There was a problem hiding this 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; |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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.'; |
There was a problem hiding this comment.
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.'; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
20 is standard.
E-Documents connector interface implementation between Business Central and Logiq
Work Item(s)
Fixes #27058
Fixes AB#541809