Community
Showing results for 
Search instead for 
Do you mean 
Reply

Help needed with ACT 2008 SDK

New Member
Posts: 8
Country: USA

Help needed with ACT 2008 SDK

Hello

 

I’m currently working on deleting an activity from a database programatically through the Act 2008 SDK.
I’ve attained an instance of an Activity object. I’m trying to use the ActivityManager’s DeleteActivity method to delete it.
This method requires an ActivityAccessor object.
I’m not familiar with this object type and the reference and samples don’t seem to help me.
Please help me in attaining the correct accessor object for the deletion to work.

 

Regards, Robert 

Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: Help needed with ACT 2008 SDK

Hi Robert,

 

You could try the following code, I haven't tested it so let me know how you get on:

 

oActivMan = oFramework.Activities;

Activity oActiv = myGetActivityMethod(oActivMan);

oActivMan.DeleteActivity(oActiv,oActiv.Organizer,true);

 

The CalendarDelegateGrantor Class inherits from the ActivityAccessor Class so I am hoping it works!

 

HTH

Vivek

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog
New Member
Posts: 8
Country: USA

Re: Help needed with ACT 2008 SDK

Thank you for your help, Vivek, it works! Smiley Happy