ys_chang
Novice

How to get the OOF's Approve URL

Use the flow code to get OOF's Worklist


But i can't get the right URL to approve? The OOF's URL doesn't like the Workspace will add &SharedUser=K2:aaabb


Can somebody help?


tks


Dim wlc As SourceCode.Workflow.Client.WorklistCriteria = New SourceCode.Workflow.Client.WorklistCriteria()
wlc.NoData = True
wlc.Platform = "ASP"
wlc.AddFilterField(SourceCode.Workflow.Client.WCLogical.Or, SourceCode.Workflow.Client.WCField.WorklistItemOwner, "Other", SourceCode.Workflow.Client.WCCompare.Equal, SourceCode.Workflow.Client.WCWorklistItemOwner.Other)
Dim wkList As SourceCode.Workflow.Client.Worklist = conn.OpenWorklist(wlc)
For Each item As WorklistItem In wkList
   ApproveURL = item.Data
           

0 Kudos
Reply
4 Replies
ys_chang
Novice

Re: How to get the OOF's Approve URL

Is there any K2 Professionaler can resolve the question?


0 Kudos
Reply
DavidL1
Apprentice

Re: How to get the OOF's Approve URL

Could you try restating your question?  Due to language differences it is difficult to understand what you are trying to ask.
0 Kudos
Reply
ys_chang
Novice

Re: How to get the OOF's Approve URL

Just to setup Out Of Office by API and Approve it by  .aspx .

1. I use API to setup out of office.

in k2 docuement. Users > Out of Office Status > How to set a users Out of Office Status

2.  get User's shared worklist's url is not add  &SharedUser=K2:xxxx

    Question is :

     A. How to get the correct url by K2 API ?

     B. How to send notification & Escalation Mail for Deputy ?

3. And want to approve by the api

in k2 docuement. Processes > Accessing > How to Open a Worklist when Out of Office is
Activated

 

tks

0 Kudos
Reply
ys_chang
Novice

Re: How to get the OOF's Approve URL

Find the way to get SharedUser's Approve URL

Must to distingusih by WorklistItem.AllocatedUser and Login User

Then  and the WorklistItem.Data + &SharedUser=WorklistItem.AllocatedUser

But still don't have idea for  B. How to send notification & Escalation Mail for Deputy ?

0 Kudos
Reply