locked
cancelling a contractdetail without cancelling the contract RRS feed

  • Question

  • Is it possible to cancel a contractdetail programmatically without cancelling the parent contract?  Using SetStateRequest, I can change its state to 2, which is "Canceled", but I was searching for the ContractDetail analogy for CancelContractRequest. Does such a Message exist?

    Thank you.

    Update
    On a Contract Detail record's ribbon, I see a button called "Cancel Contract Line".  This is what I want, but I don't know the underlying SDK.Message, assuming that's how the action is accomplished.  I need to do the cancel in a C# extension program.

    I looked at a list of messages but it was for plug-ins which may or may not be applicable here.


    • Edited by MeProgrammer Friday, January 24, 2014 6:57 PM more information
    Friday, January 24, 2014 2:41 PM

All replies

  • It looks like the SDK for CRM supports this

    http://msdn.microsoft.com/en-us/library/gg328576.aspx

    ContractDetail supports Create, Delete, Retrieve, RetrieveMultiple, SetState, SetStateDynamicEntity, Update


    Jason Peterson

    Tuesday, January 28, 2014 12:18 PM
  • Thanks for responding, Jason.  I do know about the SetState (see my original posting), but I was looking for a Cancel on the ContractDetail level.
    Tuesday, January 28, 2014 2:15 PM