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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

update entitlement status through sql

(0) ShareShare
ReportReport
Posted on by 2,510

Hi, I understand to update entitlement status code is not the correct way to do that, but if I need bring it back from cancelled to draft state, how can I do that through SQL 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Saad Kabarousse Profile Picture
    734 on at
    RE: update entitlement status through sql

    Hello,

    To update state or status with a query you must always speicfy there both values Example you have a quote that is Active and you want to bring it back to Draft statecode you have to specify also the statuscode that it will be in it (and which is associated to the statecode Draft), the query goes like:

    -- 1 In Progress Statuscode

    --0 Draft State Code

    Update QuoteBase set statecode = 0, statuscode = 1

    where Quoteid = 'XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX'

    But Since you are on MS Dynamics CRM Online you will have to create an app that connects to CRM, and execute the query directly, because you can not access the data base.

  • Suggested answer
    Flydancer Profile Picture
    1,332 on at
    RE: update entitlement status through sql

    You have tagged your post with "Microsoft Dynamics CRM Online" which means you don't have access to the database - so theres no way to do what you want.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#3
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans