How to Open a Specific Item's Edit Form in SharePoint Document Library Using URL Redirection

In SharePoint, you may want to provide users with direct access to the edit form of a particular item in a document library or list. Instead of manually navigating to the item and clicking edit, you can create a URL that redirects users straight to the edit form of the desired item.
Why Use URL Redirection for Edit Forms?
There are several scenarios where redirecting users to the item’s edit form can be useful:
Streamlined Workflows: When users need to frequently update metadata or document properties.
Task Automation: Automating the redirection for approval or review workflows.
User Convenience: Reducing the number of clicks needed to access important information.
Understanding Different Page Types in SharePoint URLs
When constructing a SharePoint URL for redirection, you can choose different Page Types to open specific forms:
Step-by-Step Guide to Creating Direct Links for Different Forms
1. Get the Item ID
Each document or item in a SharePoint document library has a unique ID, which you’ll need for opening the edit or display form.
2. Construct the URL
Here’s the general format of the URL for different forms:
https://[Your SharePoint SiteURL]/_layouts/15/listform.aspx?PageType=[Type]&ListId=[ListGUID]&ID=[Item ID]
Replace [Type] with the appropriate PageType value:
3. Retrieve the List GUID
To find the List GUID:
4. Example URLs
Here’s how the URLs would look for different forms:
Edit Form (PageType=6): EditForm.aspx
https://yourcompany.sharepoint.com/sites/yoursite/_layouts/15/listform.aspx?PageType=6&ListId={3B95E68C-2B4F-4A69-A307-15DF785B2E34}&ID=9

Display Form (PageType=4): DispForm.aspx
https://yourcompany.sharepoint.com/sites/yoursite/_layouts/15/listform.aspx?PageType=4&ListId=3B95E68C-2B4F-4A69-A307-15DF785B2E34&ID=9

New Item Form(PageType=8): Upload.aspx
https://yourcompany.sharepoint.com/sites/yoursite/_layouts/15/listform.aspx?PageType=8&ListId=3B95E68C-2B4F-4A69-A307-15DF785B2E34

5. Use the URL in Hyperlinks or Buttons
You can now embed these URLs in emails, buttons, or dashboard links. Depending on the PageType value, users will be taken directly to the edit, display, or new item form.
Comments
Post a Comment