Hi
I need to check whether the user have access to write in the table to change it status
(ex I need to end a quarantine order from started to end through code if the user have access to that table)
Hi
I need to check whether the user have access to write in the table to change it status
(ex I need to end a quarantine order from started to end through code if the user have access to that table)
You can use hasTableAccess():
hasTableAccess(tableNum(Table1), AccessType::Edit)
is it possible to check whether a particular user is having access to table?
I need to check some other userid is having access to a table and if he is having access then only i need to allow to create journals
The first thing I would do if I was you is looking at the code of hasTableAccess(). Maybe it will tell you how you can do it for other users.
I don’t have any AX 2012 on hand, therefore I leave this exercise to you.
I need in AX 2009
I created one web service to consume item from inventory, so if that user is having access to prodjournaltable i need to allow that user to create pickinglist journal?
Aha, sorry, but that doesn’t prevent you from doing what I suggested.
i need to pass one userid and need to know whether that user have access to that table
does hasTableAccess(tableNum(Table1), AccessType::Edit) will find current user is having access ?
Who is “that user” in if that user is having access to prodjournaltable i need to allow that user to create pickinglist journal?
Anyway, if you know how to do it for the current user, consider simply running the code through runAs().
the one who is using the web link
Please not that you never mentioned any web link before, therefore you can’t expect us to know what you mean by that.
Anyway, take a look at runAs().