I have a client that wants to restrict the number of user sessions per company. He wants to allow 10 user sessions open in one company, 12 in another etc. Has anyone done this?
OnCompanyOpen trigger in CU 1 insert record into the table and also check how many records are in the table and if goes over max number of Users and error out.
OnCOmpanyClose you can delete the record for that user.
Some client will crash (happens rarely) but in order to compensate for that.
OnCOmpanyOpen check and make sure all the users in the new tables are actually logged in (session table).
30 min mod.
Ahmed Rashed Amini
Independent Consultant/Developer
oh and the table should be company independant or you could just have User ID as a field and don't need company because it will be separate table for each company.
Ahmed Rashed Amini
Independent Consultant/Developer
Comments
In GL Setup have max Number of users field.
OnCompanyOpen trigger in CU 1 insert record into the table and also check how many records are in the table and if goes over max number of Users and error out.
OnCOmpanyClose you can delete the record for that user.
Some client will crash (happens rarely) but in order to compensate for that.
OnCOmpanyOpen check and make sure all the users in the new tables are actually logged in (session table).
30 min mod.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n