Post

1 follower Follow
0
Avatar

How to retrieve hidden or "deleted" resource links

Greetings!

I'm looking for a way to retrieve resource links from an active task that have been removed or "deleted".  I'm convinced that the records aren't actually deleted since when you re-add the removed resource it still has it's hours worked entries for that task, etc but I could be wrong since it might just be referencing back to the timesheets... anyway, the core of my question:

Are resource assignments actually deleted or is there some sort of status that is applied to hide them, and if so, is that status field accessible through the API?

Here is why I'm looking for this...

We have a work ticket management system that I'm building an interface that creates work tickets for each resource assigned a task and reports time worked back to the task which works fine.   However, if a project manager removes a resource from a task, we would like to be able to capture that so that we can appropriately close the resources work ticket in the external ticketing system.  Thanks in advance!

 

Kind Regards,

-Ryan

Ryan McArthur Answered

Please sign in to leave a comment.

3 comments

0
Avatar

Hi Ryan.

I'd recommend you keep track of resource deletions with a workflow rule. You could, for example, create a discussion post whenever a relevant resource link is deleted, and poll those posts in your external system integration code.

I don't know of a good way of reaching deleting resources with the API, but I believe what I suggest is a better way of implementing what you're trying to achieve anyway.

Hope this helps.

 

Ophir Kenig 0 votes
Comment actions Permalink
0
Avatar

That's a good idea, thanks!  I was thinking about setting up an email rule but I like your idea better.

Ryan McArthur 0 votes
Comment actions Permalink
0
Avatar

API querying for deleted items is now supported with the Deleted property of EntityQuery.

This, however, works for objects in the Recycle Bin (Resource Links are saved in the recycle bin only if their work item was deleted. They are not saved in the recycle bin if a resource was removed from the work item).

Ophir Kenig 0 votes
Comment actions Permalink