Closed Farzad-Jalali closed 4 years ago
Hey @Farzad-Jalali I just tested with your page locally and it works perfectly fine:
I would guess the reason why it isn't working for you is because the UUID you are passing as an argument is not a correct UUID.
Notice your UUID vs mine. 58fa88d9-a00b-ea11-a814-000d3a86d630-10000 9e38cbd3-e33d-ea11-bb33-000d3a3a5879
Ohh also another thing, you can simplify your code by doing the following:
trigger OnModifyRecord(): Boolean
var
theRow: Record Item;
begin
theRow.GetBySystemId(SystemId);
// any business logic here
end;
See documentation here: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/record/record-getbysystemid-method
I am closing this issue because it appears that it has been resolved. Please open a new issue if you believe this has not been resolved and reference the current issue.
I extended the "sales invoice line" page as API PAGE, now I try to "Get" the same line with my extended API page and as well as the original API (which is available out of the box with fewer fields exposed)
Version: I got the latest AL extension in visual studio code I'm using the cloud business central (sandbox)
something like this:
I'm getting the below response
the result is:
{"error":{"code":"BadRequest_NotFound","message":"')' or ',' expected at position 4 in '(58fa88d9-a00b-ea11-a814-000d3a86d630-10000)'. CorrelationId: a0b0d992-1329-46ae-afbf-2bd5bcf56065."}}
here is my code: