Community
Showing results for 
Search instead for 
Do you mean 
Reply

Removing a recurence pattern from an ACT! Activity

Astute Commentator
Posts: 168
Country: United States

Removing a recurence pattern from an ACT! Activity

I am trying to remove a recurring pattern from an ACT! Activity. Does anyone know of the call I have to make on the Activity to remove it?

I've looked at all the events on the activity and see no removal of recurrence. Any ideas?

 

Also, I do not want to "Clear" the recurence. I want to remove the whole recurrence pattern that is associated with the Activity.

 

Thanx.

 

T

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Removing a recurence pattern from an ACT! Activity

I would create a new recurring spec and set everything to none, then update the activity with the resurring spec

 

'// Create a new recur Spec

Dim NewRecurSpec As New Act.Framework.Activities.ActivityRecurSpec

NewRecurSpec.Period = Act.Framework.Activities.ActivityRecurPeriod.None

NewRecurSpec.DayType = Act.Framework.Activities.ActivityRecurDayType.None

NewRecurSpec.Day =
New Act.Framework.Activities.ActivityRecurDay(Act.Framework.Activities.ActivityRecurTypedDay.None)
NewRecurSpec.EndDate = Me.Activity.RecurSpec.EndDate

NewRecurSpec.Frequency = 0

NewRecurSpec.IsEndless = True

NewRecurSpec.Modifier = Act.Framework.Activities.ActivityRecurModifier.None

NewRecurSpec.Month = 0

NewRecurSpec.Period = Act.Framework.Activities.ActivityRecurPeriod.None

 

 

'// Update the activity with the recurSpec

 Me.Activity.RecurSpec.Day = NewRecurSpec.Day

Me.Activity.RecurSpec.DayType = NewRecurSpec.DayType

Me.Activity.RecurSpec.EndDate = NewRecurSpec.EndDate

Me.Activity.RecurSpec.Frequency = NewRecurSpec.Frequency

Me.Activity.RecurSpec.IsEndless = NewRecurSpec.IsEndless

Me.Activity.RecurSpec.Modifier = NewRecurSpec.Modifier

Me.Activity.RecurSpec.Month = NewRecurSpec.Month

Me.Activity.RecurSpec.Period = NewRecurSpec.Periodv

Me.Activity.Update()

 

Hoep this helps

-- Jim Durkin

Astute Commentator
Posts: 168
Country: United States

Re: Removing a recurence pattern from an ACT! Activity

Thanx Jim, I'll give that a try.

 

T