Skip to main content
May 5, 2022
Question

How to send an Email containing userinput task link to complete ,before hitting User Input Task node in the process model

  • May 5, 2022
  • 16 replies
  • 0 views

Hi Developers,

I am facing issue while trying to send an email containing User Input Task link using function a!urlfortask(tp!id,false) before hitting that User Input Task node.

When I clicked that task link that was generated using above function,it is getting an error like i attached pic.please check in attachments

16 replies

richardm900458
May 5, 2022

Hello Benjjenki,
can you tell a bit more about your requirement?
I am not 100% certain about the target.
It seems you try to send a URL of the user input task with the send e-mail node, so a user can click on it to go to the task?

May 5, 2022

yes exactly,

but once that task was submitted ,the flow should run forward like submitting the tasks in tempo

and also in this scenario send email node hits first before user input task

Thanks :-)

richardm900458
May 5, 2022

Is there any reason why the asignement mail is not sufficient?

gopalk2865
May 5, 2022

HI, You can construct a hyperlink with the help of your site link and task id and then use this URL in your email. To get the task id , you may need to add some delay before send email node so that your task id will be generated by that time.

May 5, 2022

i tried but i have facing some issue ...

=concat(
a!safeLink(
uri: "">machintsolutionsdemo.appiancloud.com/.../",

),
a!urlfortask(taskIds: tp!id, returnTaskPathOnly: true)
)

gopalk2865
May 5, 2022

you can use HTML template for sending emails . Using Template will resolve your issue.construct the link template and just pass task id from process model.

harshitb6843
May 5, 2022

My ideal solution for this will be to add a timer before the email. 
Let the timer wait for 5 seconds (now()+intervalds() function can help) and then use a task report to query the task ID from this process instance. 

After that, you can keep the rest of the functionality same. 

May 5, 2022

thank for your guide

May 5, 2022

Hi,

You need split your flow into two before user input task using AND condition. Add a wait timer to before send email node (5 to 10 sec) get task id and then send email notification along with your task link.