web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Contract Status Reason Issue

(0) ShareShare
ReportReport
Posted on by 792

Hello,

I have added a status reason "Freeze" under "On Hold" Status for the contract Entity. I am changing the status using a dialog .But the status reason is changing to the OOTB on "On Hold" and not to the "freeze".

Does this mean the status reasons are fixed fir the contract entity ? How can I achieve my requirement ?

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi!

    It's not enough to update the entity status  (CRM will pickup the default one). You should try changing fields pair - status + status reason.
     
    Hope it helps
     
    Please mark it As Answered or Verified if it did help you.
     
    Thanks

    Vlad

    http://dynamicalabs.com/

  • zmk Profile Picture
    792 on at

    Hi Vladimir,

    I am changing the pair through a dialog. I have a dialog that changes the status-status reason from Active-Active to OnHold-Freeze but the system is changing the pair from Active-Active to OnHold-OnHold which is the OOTB pair. May be in the contract entity the custom status reasons doesn't apply

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi zmk,

    i dont know why it doesnt respect your behaviour, probably when you change state there is some automation which move status reason to hold.

    You could try two approach.

    1) Throught workflow, change first status-status reason to OnHold-OnHold, then to OnHold-Freeze (maybe it will ignore the 2nd OnHold change)

    2) If approach 1) fails you could go through plugin:

    SetStateRequest req = new SetStateRequest();
    req.EntityMoniker = new EntityReference(entityName, entityId);
    req.State = new OptionSetValue(stateCode);
    req.Status = new OptionSetValue(statusCode);
    crmService.Execute(req);

    Hope it helps!

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans