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

Can you send me a screenshot of where you are adding this code?


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

This is in the workflow activity:

find_real_file.png

This is the BR I also tried

find_real_file.png

find_real_file.png

find_real_file.png

Looks like you have a business rule or dictionary default value for assigned to, setting it to opened by.

 

Can you check the business rules on Catalog task. Try deactivating them one by one and see if any of the BR causing it.


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

Where can check the dictionary default value for assigned to?