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.
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.
When constructing a SharePoint URL for redirection, you can choose different Page Types to open specific forms:
Each document or item in a SharePoint document library has a unique ID, which you’ll need for opening the edit or display form.
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]
To find the List GUID:
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
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.