I'm not on 0365 yet on-prem I'd check the following. I'm assuming there is something similar in O365
Send yourself an email with the following:
Link to Item - Item URL
List Name - List Name
Link to Site (Web URL) - Web URL
Link to list - Web URL/Lists/"ListName"/AllItems.aspx
I'd suggest adding your workflow variables to the email as well, then piecing them together.
In the properties of the list v url are there any spaces in the list name. i.e Employee Name v EmployeeName ?
I assume in 0365 you can't do the following for an edititem url ?
All things being equal the output url doesn't match the item in the list.
Andrew
Hi Andrew,
You're correct, it was along the lines of the incorrect Url. I manually added the url string until it broke, then found that another admin renamed the list slightly. So in sharepoint the list title had renamed correctly however the URL was still the old list name Web URL/Lists/"Old%20List%20Name"/AllItems.aspx. That's why I was able to manually open the items from sharepoint. Ended up recreating the list again. Exported then imported everything so wasn't hard.
So anyone who uses Sharepoint Online beware that if a list (and I'm assuming Document library also) is renamed the title changes but the url */Allitems.aspx won't change. Unless there's a delay in Sharepoint online where it updates correctly. Hope this helps others!
Thank you Andrew!,
Will
Hi Andrew & Marian Hatala
I found the Regular expression for Workflow 365. Which did the trick. Thank you both.
I used Build String in my workflow and it worked nicely. First set a variable to your URL hard coded as something like ListItemURL= https://corp.sharepoint.com/teams/something/xyz/Lists/aa%20bb/EditForm.aspx?ID=
Then in Build String, configure your String as {Variable:ListItemURL}{Current Item:ID} That will concatenate the URL text with item ID. Set the Output variable to something like DisplayItemURL. Then in your Email control you can insert your DisplayItemURL and it will be clickable from the email received in your inbox and item will display in browser (no 404 error.)