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
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Aric Levin - MVP 2 Moderator
HR-09070029-0 2
MA-04060624-0 1