I'm using application server to export Posted Sales Invoices and Credit Memos. When exporting the records, they need to be flagged as having been exported. The problem however, is that I get a permission error in the event viewer when running application server using the customer's license.
If I run the same export program from a normal client, I do not get the permission error.
Is there anything special that needs to be done to accomplish this?
The codeunit has the required permissions, the windows login being used by application server is a super user. I can't think of anything else that needs to be done.
0
Comments
Which objects you are using for export?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
The codeunit that I'm using is one that I have written specifically for the task. I have given this codeunit the required permissions. When running the codeunit from the object designer, I do not get the same permission error.
Arhontis
https://forum.mibuso.com/search
http://www.epimatic.com
Thanks to both of you for your input on this one!
Hi Jan,
your request regarding the NAS and ignoring report properties has been registered for correction with the high priority. It's planned that this issue will be corrected in the version NAV 4.0.A but I'll watch its status and give you an updated information about the timeline for correction if there's some. As a workaround solution please use the codeunit.
For modify record from report I call codeunit functions (its works correctly).
Report:
.....
//Rec.Modify;
Codeunit.FunctionModifyRec(Rec);
.....
Codeunit
FunctionModifyRec(Var Rec as ...)
Rec.Modify;