SanthoshKumar-R
Nintex Newbie

Retrieve task form url in NWC

I am assigning a task to a user with "Assign a task" action.  I have a requirement to show this Task URL in a dashboard in SharePoint. How do I obtain the Task URL?

 

I tried to log the following two context variables: 

SanthoshKumar-R_0-1611335694826.png

 

Which returns the following output:

tf_735e45fb8d9c4007a1648e44976a7722_form_url

tf_735e45fb8d9c4007a1648e44976a7722_task_name_link

The actual URLs that the user receives in the email is something like:
https://protect-us.mimecast.com/s/aQCYC2kg95ikrRD43undJpV?domain=abc.workflowcloud.com
https://protect-us.mimecast.com/s/lzNbC68m05HokMAgDipDcRf?domain=abc.workflowcloud.com

 

How can I obtain this URL in the workflow?

 

Thanks in advance.

Tags (2)
0 Kudos
Reply
5 Replies
leighburke
Nintex Employee
Nintex Employee

Re: Retrieve task form url in NWC

@SanthoshKumar-R  Currently the only way to get the task variable outside of the Task is using the NWC API(https://developer.nintex.com/reference), there is a connector to make this easier inside of the workflow(https://gallery.nintex.com/5fff792f28910a003648bd5e/Nintex%20Workflow%20Cloud%20API%20v2).

0 Kudos
Reply
SanthoshKumar-R
Nintex Newbie

Re: Retrieve task form url in NWC

Hi @leighburke,
Thanks for your response. The API extension uses Personal Access Token, and only returns the tasks that the workflow owner has access to. Is there a way to get all users tasks?
0 Kudos
Reply
leighburke
Nintex Employee
Nintex Employee

Re: Retrieve task form url in NWC

@SanthoshKumar-R  The xtension I linked above uses app based authentication and should be able to access all tasks(https://)help.nintex.com/en-US/nwc/Content/Settings/APItokens.htm).

0 Kudos
Reply
macleary
Nintex Newbie

Re: Retrieve task form url in NWC

What is the purpose of exposing those 2 properties to us if they aren't actually the URL of the form? I too was thinking they'd be the link to the task form, since that's what they are labeled. Are we able to make use of these? Here is a sample of what I see when I log the values:

 

Task name (Form link): tf_6af8649466954341a150bf4ccde501a0_form_url
Form URL: tf_6af8649466954341a150bf4ccde501a0_task_name_link

0 Kudos
Reply
leighburke
Nintex Employee
Nintex Employee

Re: Retrieve task form url in NWC

@macleary They can only be used inside of the task action, so that you can customise the task email.

0 Kudos
Reply