Microsoft Knowledge Base Email Alertz

(913391) - Describes an issue where the Actual Duration field displays an incorrect total time when you resolve a case in Microsoft Dynamics CRM 3.0. Provides a workaround.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 913391 - Last Review: August 15, 2007 - Revision: 3.3

The "Actual Duration" field displays an incorrect value when you view the "Resolve Case" dialog box in Microsoft Dynamics CRM 3.0

On This Page

SYMPTOMS

When you view the Resolve Case dialog box in Microsoft Dynamics CRM 3.0, an incorrect total time is displayed for the billable time. For example, the Actual Duration field displays the default value of 30 minutes. Additionally, when you calculate the total time spent on an incident by using the Microsoft CrmService.asmx Web service, the CalculateTotalTimeIncident message returns an incorrect total time.

CAUSE

This issue may occur because the Duration field under Scheduling information on the default Appointments form is the only editable field in that location.

Specifically, Microsoft CRM 1.2 and Microsoft Dynamics 3.0 have the following duration fields for activities:
  • ScheduledDurationMinutes
  • ActualDurationMinutes
In Microsoft CRM 3.0, you can edit only the Duration field on the default Appointments form.

In Microsoft CRM 1.2, the value of the Duration field is copied to the Actual Duration field when the appointment is closed. However, in Microsoft Dynamics CRM 3.0, the value of the Duration field is not copied to the Actual Duration field when the appointment is closed. Instead, the Actual Duration field retains its default setting of 30 minutes.

WORKAROUND

To work around this issue, use one of the following methods, as appropriate for your situation.

Method 1

If you do not need an automated process to update the fields in a form, follow these steps:
  1. Click Settings, click Customization, and then click Customize Entities.
  2. Double-click Appointment.
  3. Click Forms and Views.
  4. Double-click Form.
  5. Click the Appointment tab, and then click Add Fields.
  6. In the Add Fields dialog box, click to select the check boxes for the following fields, and then click OK:
    • Actual Duration
    • Actual Start
    • Actual End
  7. Click Save and Close to close the Form: Appointment window.
  8. On the Actions menu, click Publish.
  9. After the customizations have been published, click Save and Close to close the Entity: Appointment window.
  10. Click Workplace, click My Work, and then click Activities.
  11. Click New.
  12. In the New Activity dialog box, click Appointment, and then click OK.
The new fields that you added in step 6 will now be available. However, there is no code that is associated with the fields. You must manually change the new fields when an update to the fields is needed.

Method 2

If you need an automated process to update the fields in a form, follow these steps:
  1. Click Settings, click Customization, and then click Customize Entities.
  2. Double-click Appointment.
  3. Click Forms and Views.
  4. Double-click Form.
  5. Click the Appointment tab, and then click Add Fields.
  6. In the Add Fields dialog box, click to select the check boxes for the following fields, and then click OK:
    • Actual Duration
    • Actual Start
    • Actual End
  7. To add an automated process to update fields in the form, follow these steps:
    1. Click one of the fields that you added in step 6. For example, click Actual Duration.
    2. Click Change Properties.
    3. On the Display tab in the Field Properties dialog box, click to select the Disabled on the form check box, and then click OK.
    4. Repeat steps a and b for the rest of the fields that you added in step 6.
    5. Click Form Properties.
    6. On the Events tab, click OnSave and then click Edit.
    7. Type the following code:
      crmForm.all.actualdurationminutes.DataValue = 
      crmForm.all.scheduleddurationminutes.DataValue;
      crmForm.all.actualstart.DataValue = crmForm.all.scheduledstart.DataValue;
      crmForm.all.actualend.DataValue = crmForm.all.scheduledend.DataValue;
      
    8. Click to select the Event is enabled check box, and then click OK.
    9. Click OK.
  8. Click Save and Close to close the Form: Appointment dialog box.
  9. On the Actions menu, click Publish.
  10. After the customizations have been published, click Save and Close to close the Entity: Appointment window.
  11. Click Workplace, click My Work, and then click Activities.
  12. Click New.
  13. In the New Activity dialog box, click Appointment, and then click OK.
The new fields that you added in step 6 are now available and will be updated automatically.

MORE INFORMATION

When you enter a time value for an activity such as an appointment in Microsoft Dynamics CRM 3.0, the saved time value for the activity may be incorrect. For more information about this problem, click the following article number to view the article in the Microsoft Knowledge Base:
915916  (http://kbalertz.com/Feedback.aspx?kbNumber=915916/ ) The duration value may be incorrect when you create an appointment activity record in Microsoft Dynamics CRM 3.0

APPLIES TO
  • Microsoft Business Solutions CRM Sales for Outlook, when used with:
    • Microsoft CRM 3.0
  • Microsoft CRM 3.0
Keywords: 
kbmbscrm40no kbtshoot kbprb kbmbsmigrate KB913391
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate