Asked by:
Facing problem in adding value in status reason

Question
-
Hi,
I have created new entity named purchase order.and in that i have to use field "status" and "status reason"..
How can I add new status and status reason like new,release,complete,cancel..?
Friday, September 11, 2015 8:51 AM
All replies
-
Hello,
For every custom entity statecode always would be limited to Active and Inactive and you would not be able to extend that values.
But you can add new values to statuscode field doubleclick on statuscode and add required values inside.
Dynamics CRM MVP
My blog- Proposed as answer by Andrii ButenkoMVP, Moderator Monday, September 14, 2015 11:20 AM
Friday, September 11, 2015 8:59 AMModerator -
Okkay..but i want to add -new,release,complete,cancel -statuscode dynamically?..is it possible?if yes, then how?Friday, September 11, 2015 9:03 AM
-
I'm not sure what do you mean with 'add dynamically'. You can only configure it once and use after. Could you please provide a sample that describes your scenario?
Dynamics CRM MVP
My blogFriday, September 11, 2015 9:08 AMModerator -
I understand wht you told me before..
I have created new entity and i want to use "statuscode" and i want to set this value through my code..not through admin side..
If I am creating new field I amnot getting any data type like this.Friday, September 11, 2015 9:13 AM -
In case you want to add statuscode through code recheck following article - https://community.dynamics.com/crm/b/mileyja/archive/2011/11/02/insert-a-statuscode-into-a-statuscode-list-in-microsoft-dynamics-crm-2011-using-net-or-jscript
Dynamics CRM MVP
My blog- Proposed as answer by Andrii ButenkoMVP, Moderator Monday, September 14, 2015 11:20 AM
Friday, September 11, 2015 10:39 AMModerator