Hello,
I’m setting up a sort of help desk system, based off the SharePoint online classic UI discussion board. Each item represents a ticket and has an extra column called "status" (either, Opened, Work In Progress, Completed).
I need to display this "status" in the FlatView.
I put a Content Editor Web Part (CEWP) as a place holder, and want to replace the string there with Script Editor Web Part (SEWP). I’m hoping the JavaScript in this SEWP can somehow retrieve the “status” value through REST API.
However, how can the JavaScript determine the item id ? In the "Flat.aspx" URL, I see only “RootFolder” and “FolderCTID” CGI parameters like below.
<My SharePoint URL>/Lists/DiscussionBoard_10/Flat.aspx?RootFolder=Lists%2FDiscussionBoard_10%2F2nd%20item&FolderCTID=0x012002009BA4CD5F18B7DE44BA8E610AF77CB5C8Or is there way to convert the "RootFolder" to the item id through JavaScript ?
Thank you.