Change default ID Field in form URL to different field

Michal_ww 96 Reputation points
2020-10-22T06:14:22.597+00:00

Hi

I'm struggling with finding a solution to the following exercise:

I'm having a SP list with workflows that send URL link to the edit forms. Currently, the users receive standard URL which is http://myorgsite.net/sp/lists/list_name/form_1.aspx?ID=123, where 123 is the value of ID field. Basically, users can access the form of any other item from the list by changing the value at the end of the URL.

I thought of two approaches to this challange

encrypt/hash the URL link so the users will not get possibility to edit anything; or
change the part of the URL link so the other field would be used. e.g http://myorgsite.net/sp/lists/list_name/form_1.aspx?REF=2h34y324n where "2h34y324n" is the value of calculated field
I would appreciate an assistance in resolving this challange

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,604 questions
{count} votes

Accepted answer
  1. Michal_ww 96 Reputation points
    2020-10-23T07:17:50.28+00:00

    is there any way to fully mask the URL then?


1 additional answer

Sort by: Most helpful
  1. Amos Wu-MSFT 4,051 Reputation points
    2020-10-23T02:09:59.147+00:00

    As I know,it's impossible to achieve this.ID Number id is the unique identifier of item,and it is auto-incremented for you automatically.Without the ID, it is impossible to determine which item is being edited in the editform.
    If you do not want the user to edit other item,you could try to use permission.


    If the response is helpful, please click "Accept Answer" and upvote it.
    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

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.