cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
skindu
Helper III
Helper III

SharePoint list, only add 1 item

I have a sharepoint list, and each member can only add 1 item.

 

I've looked in the sharepoint list settings, but I can't find any option that does that, so I remembered that I could use power auto.

 

Has anyone had this implementation scenario?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Dual Super User
Dual Super User

Hi @skindu,

 

One workaround could be trying to enforce it from the input side of things, via column settings and Power Apps form customization.

 

I would add a single line of text column. Enforce unique values on that column. After that I would use PowerApps forms customization to disable input for this column and set the default value to User().email.

 

With this workaround whenever the same user tries to save another item they won't be able to, because there already is an item which has the same value in this new column. Be aware this workaround doesn't support adding items via the edit in grid view. 

 

Below is an example of that approach.

 

1. Create new column which enforces unique values (on save item event).

 

enforce_uniquevalues.png

 

2. Customize the datacardvalue with PowerApps form customization to set the default property to the User().Email and the DisplayMode of DataCard to Disabled.

 

defaultvalue_column_powerapps.png

View solution in original post

2 REPLIES 2
Expiscornovus
Dual Super User
Dual Super User

Hi @skindu,

 

One workaround could be trying to enforce it from the input side of things, via column settings and Power Apps form customization.

 

I would add a single line of text column. Enforce unique values on that column. After that I would use PowerApps forms customization to disable input for this column and set the default value to User().email.

 

With this workaround whenever the same user tries to save another item they won't be able to, because there already is an item which has the same value in this new column. Be aware this workaround doesn't support adding items via the edit in grid view. 

 

Below is an example of that approach.

 

1. Create new column which enforces unique values (on save item event).

 

enforce_uniquevalues.png

 

2. Customize the datacardvalue with PowerApps form customization to set the default property to the User().Email and the DisplayMode of DataCard to Disabled.

 

defaultvalue_column_powerapps.png

I want to evolve PowerApps, but I still don't have enough skills.

The list have a lot fields, there are about 25 fields, with a lot of validations...

 

So, for now, I'm going to use the form with json sharepoint

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

Users online (3,769)