Avoiding duplicate entries in a Sharpoint list

SharepointNick 1 Reputation point
2022-06-29T07:40:55.797+00:00

We need the following function. We have a phone column, in which the same phone number can appear several times. However, one of the multiple phone numbers must be the leading one. We want to achieve this with an additional column in which the same telephone numbers are given the value 0 in the column, but the leading telephone number should be given the 1. The 1 must not appear twice in the same telephone number. How can I implement this in a Sharepoint list so that when entering the same phone number, the 1 is not assigned twice?

phone Column, selector
123456 - 0
123456 - 0
123456 - 1 (this is the leading number)
123456 - 0
No other entry could have the 1 for the number 123456.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,173 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Yanli Jiang - MSFT 28,796 Reputation points Microsoft Vendor
    2022-07-01T14:54:18.553+00:00

    Hi @SharepointNick ,
    According to your description, your requirement is more related to Power Apps. Therefore, we suggest that you can go to the Microsoft Power Apps Community for professional help.
    Thank you for your support and understanding.

    Thanks,
    Yanli Jiang

    ===========================================

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. sadomovalex 3,631 Reputation points
    2022-07-01T15:05:06.253+00:00

    do you use online or on-prem version? In on-prem such validation may be done by implementing custom even receiver and attaching it to target list: it may check that leading number is only one and set Cancel = true otherwise. See example e.g. here: Developing an Event Receiver for the ItemUpdating event.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.