I'll see if I can keep this succinct, while also covering everything. I've been tasked with figuring out a way to "extend the life" of workflow data beyond the usual limit (without just manually extending it and causing performance issues). I know the "Workflow History" doesn't actually go away, but the data Nintex is providing leaves a lot to be desired (I'm guessing because the workflow history is now in a custom format).
After going down a rabbit hole of playing with the SharePoint API and searching on Google, I'm stuck.
First off, the initial source that gave me this idea suggested creating a link in the actual SharePoint list, that points back to Workflow History via the GUID. Only the `List ID` and `Primary Item ID` are always blank.
So I started trying to figure out if I could locate that (or some other piece of helpful data) via the API. Perhaps rebuild that data with Power Automate. Or find a reference to the `Workflow History Parent Instance` column somewhere.
But all the other references I find call out columns from the original SP list, like `WorkflowInsanceID` or mention something like grabbing the data from `/WorkflowAssociations`, both of which are always blank.
Basically, if I manually grab all the `GUID`s from the Workflow History list that I know are associated with a list item (the aforementioned Workflow History Parent Instance) then I can create a view similar to what I'm looking for. But those GUIDs are not listed anywhere but the Workflow History list itself.
Plenty of what I was reading is from years ago. But this seems like a huge oversight. I mean, how does Nintex build the list of workflows if that data isn't available??
Any help would be very much appreciated. I feel like I'm just missing something. Or the previous owner of this site misconfigured something that would allow this data to be available. Let me know if I need to clarify anything. Thanks!