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.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,971)