I wrote some CAL code for updating my approval entry table for multiple users approvals for documents in a workflow.
IF (ImprestHeader."Pending Approvals" = 1) AND (ImprestHeader."Request Status" = ImprestHeader."Request Status"::"Pending Approval") THEN BEGIN
IF Approval.FINDFIRST THEN BEGIN REPEAT
IF (Approval."Sequence No." = 2) AND (Approval.Status = Approval.Status::Open) THEN
UNTIL Approval.NEXT = 0;
I also follow this link: https://www.myerrorsandmysolutions.com/you-do-not-have-the-following-permissions-on-tabledata/
By the way it was working fine in the test server but with error messages in the live server with job queue reports:
What can I do to solve these error messages.