Assign task to Requested For user using the workflow script

gnunez
Kilo Guru

Hi all,

I would like to assign the catalog task to the Requested For user. In my workflow activity for task I added the script task.assigned_to = current.variables.requested_for; but it still assigns the task to the opened by user instead of requested for.

Does anyone know if it has anything to do with the display values for the task table?

Thanks,

Grace

1 ACCEPTED SOLUTION

No. Requested For is a field on Request. So we were trying to access it using current.request.requested_for. 

If it is a variable, we can access it as current.variables.requested_for from RITM or in workflow.

 

The business rule you created, can you change the order of the business rule to 2000 and try again?


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

17 REPLIES 17

Right click on assigned to and select directory and check default value.

Got it, thank you. I checked but default value is blank.

Hi Sanjiv, I noticed that the task table does not have the column label of "Requested For" do you think this may be causing the issue?

No. Requested For is a field on Request. So we were trying to access it using current.request.requested_for. 

If it is a variable, we can access it as current.variables.requested_for from RITM or in workflow.

 

The business rule you created, can you change the order of the business rule to 2000 and try again?


Please mark this response as correct or helpful if it assisted you with your question.

Hi Sanjiv I changed the BR  order to 2000 and it works now! Thank you!

Out of curiosity, why do you think the order had to be changed?