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

There must be a Business Rule which is setting the Requested For as Opened By and it has a higher order, which is why it is overwriting your BR. Since we couldn't find that BR, and also we don't want to change the functionality which is already there, it is better to keep the existing functionality and override it only for our use case.


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

Mike Patel
Tera Sage

Based on other response, You might have another business rule that might be kicking off and set Opened_by as assigned _to.

 

Turn on Business Rule Debug and submit request through native view.

find_real_file.png

There is a business rule to set assigned to to opened by, but I had disabled it to test with requested for.