Microsoft KB Archive/933846

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Knowledge Base


When you use the SDK to renew a contract in Microsoft Dynamics CRM 3.0, the contract is not renewed as expected

Article ID: 933846

Article Last Modified on 8/15/2007



APPLIES TO

  • Microsoft CRM Software Development Kit, when used with:
    • Microsoft Dynamics CRM 3.0



SYMPTOMS

Consider the following scenario. You use the Microsoft CRM software development kit (SDK) to programmatically create both a contract and the contract detail in Microsoft Dynamics CRM 3.0. Additionally, you use code to programmatically set the state and the status code in the contract detail. Then you invoice the contract. However, if you then use the SDK to renew the contract, the contract is not renewed as expected.

CAUSE

This issue may occur after you install Update Rollup 1 for Microsoft Dynamics CRM 3.0.

WORKAROUND

To work around this issue, set the StatusCode.Value parameter to -1. By doing this, you enable Microsoft CRM to correctly assign the StatusCode value for a particular state.

For example, use the following sample code to set the StatusCode.Value parameter to -1.

ContractDetail cd = new ContractDetail();

Status StatusCode = new Status();
StatusCode.Value = -1;
cd.StatusCode = StatusCode;

MORE INFORMATION

For more information about Update Rollup 1, click the following article number to view the article in the Microsoft Knowledge Base:

922815 Update Rollup 1 for Microsoft Dynamics CRM 3.0 is available



Additional query words: crm 3 crm30 crm3.0

Keywords: kbmbscustomization kbcode kbprb kbmbsmigrate kbtshoot kbexpertisebeginner KB933846