Post

1 follower Follow
0
Avatar

Determine if resource is assigned and delete

I have a custom action that converts a request to a project using a template based on user input.  I’m adding the ability to assign resources at the same time the request is converted.  I’m able to assign the new resources via the user input dialogue, but I’m ending up with 2 resources on some tasks.  For example, all my templates have a task named “Produce”.  Some templates have a dummy resource assigned (Producer), and some are assigned to me.  Is it possible to determine if there is a resource assigned to a task with a particular name and delete it before assigning the new one?

Candice Bell Answered

Please sign in to leave a comment.

1 comment

0
Avatar

Is the user manually selecting the template when a he/she triggers the custom action?  If so, you can uncheck "resources" at the bottom of the template selection page and then none of the resources on the template would be populated.  Not sure if that helps in your scenario or not.

Ashley Fraschilla 0 votes
Comment actions Permalink