-
Notifications
You must be signed in to change notification settings - Fork 164
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
[Edit-In Excel] Improve metadata handling #1721
base: main
Are you sure you want to change the base?
[Edit-In Excel] Improve metadata handling #1721
Conversation
@@ -14,6 +15,42 @@ codeunit 1481 "Edit in Excel" | |||
{ | |||
Access = Public; | |||
|
|||
procedure CreateMetadataWebRequest() |
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.
Whats with this procedure?
Does nothing? Init local variable and one declared variable not used.
@@ -14,6 +15,42 @@ codeunit 1481 "Edit in Excel" | |||
{ | |||
Access = Public; | |||
|
|||
procedure CreateMetadataWebRequest() | |||
var | |||
EnvironmentInfo: Codeunit "Environment Information"; |
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.
This one should be name space using System.Environment;
@@ -5,6 +5,7 @@ | |||
|
|||
namespace System.Integration.Excel; | |||
|
|||
using System; |
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.
using System.Environment;
EntitySetName: Text; | ||
begin | ||
MetadataUrl := 'https://metadatastoragexyz.blob.core.windows.net/metadata/metadata.xml?sp=r&st=2024-08-02T09:38:22Z&se=2024-08-02T17:38:22Z&spr=https&sv=2022-11-02&sr=b&sig=eP4pvx1m1OiiGVhYVD4haMIYvSgOAWIUysk3mD7h8Ds%3D'; | ||
EntitySetName := 'Company'; |
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.
I don't see this necessary as variable, could be hardcoded with //edm:EntitySet[@name="
begin | ||
MetadataUrl := 'https://metadatastoragexyz.blob.core.windows.net/metadata/metadata.xml?sp=r&st=2024-08-02T09:38:22Z&se=2024-08-02T17:38:22Z&spr=https&sv=2022-11-02&sr=b&sig=eP4pvx1m1OiiGVhYVD4haMIYvSgOAWIUysk3mD7h8Ds%3D'; | ||
EntitySetName := 'Company'; | ||
if HttpClient.Get(MetadataUrl, HttpResponseMessage) then |
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.
@StefanSosic I'm just prototyping some stuff .. I changed this into a draft PR instead. |
@DenLilleMand Sorry and thanks! Let's review it than when ready :) |
…etadata-errors-handling
…etadata-errors-handling
Summary
Currently metadata errors only appear when you open the Exported Excel Workbook, it is not clear if:
This change sets out to lessen the confusion about these errors and make the feedback instantaneous in cases where it was not possible to generate the required metadata.
This change should also be accompanied by documentation updates on how the users can debug metadata generation failures.
Work Item(s)
Fixes AB#542840