Restrict user from submitting records past maxm. count & make it visible to them independently.

Shwetha Nair
Giga Guru

Hi Developers,

 

I have a requirement to give personalisation option to users for which I created a Record producer which can be accessed by a Button in portal, once they submit it will create a record in the backend table and will be visible to them from Service Portal section.

My issues are how to configure :

1. How can I restrict users from submitting record post 6 records. (keep in mind we are giving them the option to delete the records if any, from what they created)

2. How can I show only the records created by them. That means User A created 3 records and User B created 4 records both should be visible independently.

 

Thanks,

Shwetha

1 REPLY 1

Sanjay191
Tera Sage

Hello @Shwetha Nair 
1. You can restrict the user to submit the record by creating custom field that count the how many time record created by current user if the limit exceeds then  abort action.
2.you can query the record on basis of the current login user so on the basis of that you can show the record.

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Thank You