0

Is it possible to get a list of ScheduledItems from SharePoint in C# (event receiver)?

For example, I've created a ScheduledItem and called the .Schedule() method. I'd expect this ScheduledItem to appear in the list (however I go about retrieving this 'list').

1

Yes you can, Since its scheduleitems i guess these items are in a list. so all you need to do is go through each listitem and check item's approval status, if its = "Scheduled" if it is then you can add it to a custom list or however you want it :)

Hope it helped ;)

  • The problem is that the item in question isn't appearing as scheduled. Basically, my problem is that I'm creating a scheduled item on an event receiver, but when I call .Schedule() it's obviously calling the event receiver again, so I need a way of telling it not run the ScheduledItem creation code again (i.e. check if it's already scheduled). Approval status is still appearing as 'Draft' by the time it gets back to the code. Thanks a lot for your reply. – JᴀʏMᴇᴇ Aug 30 '12 at 10:13
  • 1
    can you add code your using please so that i have a look ! – Mathematics Aug 30 '12 at 10:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.