I want to get automatic exit date of employee in User card.

when user permissions are deleted from User permission set, automatically exit date i.e. today's should be displayed on the exit date field on that page.

can anyone please help me to do this

Best Answer

Answers

  • PriyankaPatilPriyankaPatil Posts: 6Member
    Hi mohana thanks for your answer .
  • PriyankaPatilPriyankaPatil Posts: 6Member
    Hi All,
    I have added this code in user permission set but it is not working, can anyone suggest?

    Users.RESET;
    Users.SETRANGE(Users."User Name","User Name");
    IF NOT Users.FINDFIRST THEN BEGIN
    Users.GET(Users."User Name");
    Users.INIT;
    Users."Exit Date" := TODAY;
    Users.INSERT;
    END;
  • jan_jansenjan_jansen Posts: 12Member
    look at the codeunit for the jobqueue how they check the permissions of the user.
Sign In or Register to comment.