I am creating essentially an extension of the default get customer endpoint, but need to return dimensions as part of the /customers endpoint, so part() won't work for me. I presume I need to do something along the lines of this:
var
Dimensions: Text;
trigger OnAfterGetRecord()
var
TDimensions: Record "Default Dimension";
begin
TDimensions.Reset();
TDimensions.Get();
Dimensions := TDimensions."Dimension Code";
end;
But obviously need to pass in some "query" stuff to specify what data I want, but not really sure how. Any help is much appreciated.