Workflow - Create Task activity - Get task number

Community Alums
Not applicable

Hi everyone,

I could use some help with this issue.

Here is what I'm trying to do:

Goal:  Create a change record after a catalog task is completed and store the change # in the catalog task.  Do not continue the workflow until the catalog task AND change are closed.

Current solution:

Within the workflow, after the Catalog Task activity, I added a Create Task activity that creates the change and clicked "Wait for completion".  This will allow the workflow to proceed when the change closes.  

Issue with above solution:  I need to store the change number (not the Sys ID) in the catalog task description within the Create Task activity but it doesn't seem to be available because I can't determine when the change is committed to the database.

Another idea I thought about using was the Wait for Condition activity but that only applies when the record (in this case, the requested item) is updated so that won't work.  

Any suggestions on how to store the change number into the catalog task?

 

1 ACCEPTED SOLUTION

I used task.number in create task activity script and it works for me. It did give me the task #.

View solution in original post

11 REPLIES 11

Community Alums
Not applicable

dvp,

 

I thought about using that too but how can I be sure that the number returned will be used?  What if another user creates a change prior to the change created from the Create Task activity is inserted?

 

Thanks,

 

 

 

I used task.number in create task activity script and it works for me. It did give me the task #.

Community Alums
Not applicable

abhinay,

 

Did you have the "Wait for completion" checkbox in the activity checked?  

 

Aren't you trying to get the CHG number when the change is getting created ?

Community Alums
Not applicable

Yes, I'm want the change #; not the sys_id.