Hello,
When you modify an activity that belongs to a series (one occurrence), a new activity record is created. Is there a way to find the datakey for this new record either on a client or server side event?
Thanks,
alozada
Me too has a similar problem. I cannot find a built function to do this. I ended up creating my own function to look up the last inserted activityID.
You can use the Activity_Updated event of the WebSchedule. I'm sure there is a more elegant solution to this hiding somewhere.
{
//"open occurence", not a variance then add activitydetail variance
//get last activityId inserted
int activityId = Business.Logic.Schedules.Sched_GetLastInsertedActivityID(int.Parse(e.Activity.RecurrenceKey));
}