Quantcast
Viewing latest article 1
Browse Latest Browse All 20

New Post: Publish item and link Activity - Should item deletions be cascaded?

Hi Ryan

I've done a bit more work on this and I think I have isolated the problem.  When I was testing before I was trying to publish between two document libraries on the same website.  This seems to be the problem.  If I try to publish between site collections or between web appplications, the activity works fine and in these cases, the links in both the source list and destination list are the correct.

It seems from my work now that you only need to run the Publish item and link custom activity one time on any particular list item, e.g. run it on the basis of a new item being created.  It does not need to be run subsequently on an item change trigger.  Your code seems to automatically keep the lists synchronised (including deletions) without running the activity again. Is this what you expect to happen?

On the above basis, I have two remaining issues with the activity:

  1. If  I run the activity inside a "New Item" workflow, I often get an error of type "The file DocLib/Costing R1.xlsx has been modified by GENESYS\nicholasevans on 13 Feb 2010 13:16:28 -0000.".  However, if I go back to the list, invariably the activity has run and published the item.  Currently, it seems that if I add a pause into the workflow before running the activity (e.g pause for 5 minutes), I don't see this issue.
  2. In order for the activity to run, the current user of the source list must also be an authenticated user with sufficient permissions to create/edit an item in the destination list.   If the source list user does not have permissions on the destination list to create/edit items, the activity fails and does not publish or update the destination list entry.   It would be useful if the activity could be extended to take in a "user" parameter for the destination list or have some other solution to allow authentication against the destination list.

However, I have to say that this particular activity is one of the most useful items i have ever downloaded and played with from codeplex so thanks for the great work.  I'll try and get to playing with the other activities over the next few days.  Do you have any plans to make these activities sharepoint 2010 compatible?

Nick


Viewing latest article 1
Browse Latest Browse All 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>