getting the activityInstanceId at the UI Form level
Hello,
I am trying to call a BDM API that uses the current activityInstanceId in it's query. it fetches all the data that has a taskId < activityInstanceId.
In my table i store the task ID upon creation, and would like to query over them.
How could i get the activityInstanceId from the UI? this is the URL that i want to call :
../API/bdm/businessData/com.bdm.document?q=findCommentListPreceedingTaskId&p=0&c=99&f={{taskId = activityInstanceId}}
if it isn't possible, can i store it as default value in a local variable and then pass it to the form ? if yes, how could i pass it?
Hi,
Are you sure about the API call being correct?
Since you have {{taskId=activityInstanceId}}, this is executed as code, thus making taskId to equal activityInstanceId, are you sure you want to do that?
Shouldn't it be :
" ../API/bdm/businessData/com.bdm.document?q=findCommentListPreceedingTaskId&p=0&c=99&f=taskId={{activityInstanceId}}" ?
Or am I misunderstanding something?
Comments
Thank you! in deed, this solved my problem, thank you