I have a custom entity, and I want to be able to calculate the duration of
all the activities associated with those entites and display them on it's
form.

Example:
I have my Bug Report entity called "Printing ledger not working"
The programmer adds several activities under "Printing ledger not working"
I want to calculate the duration of all those activities and place them on
the form of "Printing ledger not working" on every save in a field called
"Actual Time Spent".

Cheers,
Logan

Re: calculate duration of activities with JScript by Michael

Michael
Fri Sep 08 17:06:49 CDT 2006

Logan,

You need to develop a callout for this. It should register for the
PostCreate and PostUpdate events of the activities you use and update your
bug report entity. The SDK has more information about writing callouts plus
sample code. You may also look at
http://www.stunnware.com/crm2/topic.aspx?id=Callout1 for another sample.

--
Michael
http://www.stunnware.com/crm2
----------------------------------------------------------
"Logan Hanson" <Logan Hanson@discussions.microsoft.com> schrieb im
Newsbeitrag news:D9823663-67D8-4E9F-8132-13B4EE1C8F60@microsoft.com...
>I have a custom entity, and I want to be able to calculate the duration of
> all the activities associated with those entites and display them on it's
> form.
>
> Example:
> I have my Bug Report entity called "Printing ledger not working"
> The programmer adds several activities under "Printing ledger not working"
> I want to calculate the duration of all those activities and place them on
> the form of "Printing ledger not working" on every save in a field called
> "Actual Time Spent".
>
> Cheers,
> Logan



Re: calculate duration of activities with JScript by LoganHanson

LoganHanson
Mon Sep 11 18:18:01 CDT 2006

Thanks Michael, I will look it up.

Cheers,
Logan

"Michael Höhne" wrote:

> Logan,
>
> You need to develop a callout for this. It should register for the
> PostCreate and PostUpdate events of the activities you use and update your
> bug report entity. The SDK has more information about writing callouts plus
> sample code. You may also look at
> http://www.stunnware.com/crm2/topic.aspx?id=Callout1 for another sample.
>
> --
> Michael
> http://www.stunnware.com/crm2
> ----------------------------------------------------------
> "Logan Hanson" <Logan Hanson@discussions.microsoft.com> schrieb im
> Newsbeitrag news:D9823663-67D8-4E9F-8132-13B4EE1C8F60@microsoft.com...
> >I have a custom entity, and I want to be able to calculate the duration of
> > all the activities associated with those entites and display them on it's
> > form.
> >
> > Example:
> > I have my Bug Report entity called "Printing ledger not working"
> > The programmer adds several activities under "Printing ledger not working"
> > I want to calculate the duration of all those activities and place them on
> > the form of "Printing ledger not working" on every save in a field called
> > "Actual Time Spent".
> >
> > Cheers,
> > Logan
>
>
>