# Get TaskInstance Id

**URL:** <https://community.ofelia.com/t/get-taskinstance-id/8131>\
**Category:** Q&A\
**Created:** [23 January 2017 18:50 UTC](https://community.ofelia.com/t/get-taskinstance-id/8131 "2017-01-23T18:50:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![melis](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@melis](https://community.ofelia.com/u/melis)\
**Post date:** [23 January 2017 18:50 UTC](https://community.ofelia.com/t/get-taskinstance-id/8131/1 "2017-01-23T18:50:58Z")

</div>

Hello!

Currently i’m working on a proof of concept for my work.  
I want a user taskList to load all the refused “requests” from a user inside my page. I did this with the API:  
…/API/bdm/businessData/com.company.model.CompensationRequest?q=findByUserAndStatus&p=0&c=10&f=userId={{session.user\_id}}&f=status=refused

This gives me a list with all the information that has been given in the forms.  
When I click on a row in the table (tasklist), a Button appears which will allow me to change the given information. To go to the next step of the process, i give the URL:  
“/bonita/portal/resource/taskInstance/Compensation%20Request/1.0/Update%20Request/content/?id=” id

Yet i can’t seem to find how to get this ID.  
Is there any way to request this id?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![sistemas\_aplicacione](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sistemas\_aplicacione](https://community.ofelia.com/u/sistemas_aplicacione)\
**Post date:** [21 September 2017 12:19 UTC](https://community.ofelia.com/t/get-taskinstance-id/8131/2 "2017-09-21T12:19:23Z")

</div>

hello, I am new in bonita but i have seeing something similar and i think you can try something like this:

- if is task:  
‘/bonita/bpm/process/processInstance/nameprocess/task/nametask?id=’ + id  
where nameprocess: your process, and nametask your task
- if is form:  
‘/bonita/portal/form/processInstance/nameprocess/task/nametask’
