Skip to main content
Hi everyone

i am using k2rom object and i retreive all the worklist item ...no issues it's working but when i need to retreive worklist items for one particular user it gives me error for user does not have permission

i am this code..

Authenticate function is called in page load

Private Sub Authenticate()

Dim connstr As String = "[;];Authentication=Windows;Domain=k2mega.local;User=karenb;Password=k2pass"
Session("K2ConnectionString") = connstr
End Sub


Dim myConn As New K2ROM.Connection
Dim sUser As String
myConn.Open("k2megasrv", Session("K2ConnectionString"))
'==========================
Dim myWList As K2ROM.Worklist
Dim myWLItem As K2ROM.WorklistItem
myWList = myConn.OpenWorklist("ASP", "karenb")

any help would be appreciated ...

thanks in advance
using the K2 service manager, check if the user (KarenB) has at least view/participate permissions on the processes you are working with...
Hi, my first post on here, so be gentle.

I am trying to get to look at a worklist item. I double checked to make sure that my user has view/participate on the process, here is my code snippet

SourceCode.K2ROM.Connection myConn = new SourceCode.K2ROM.Connection();            
myConn.Open("servername");
SourceCode.K2ROM.Worklist myWList = myConn.OpenWorklist("ASP");
string fu = "";
for (int i = 0; i < myWList.Count - 1; i++)
{
fu = myConn.ViewProcessInstance(myWList.ID);
}
myConn.Close();


everytime i execute this, it tells me that I do not have permissions to view the process.
Hi John,

Welcome!!

Remember, the ViewProcessInstance method needs a Process Instance ID. Try to pass it: myWList.ProcessInstance.ID

Hope this helps,
Ockert

Reply