{"id":2828,"date":"2017-10-17T00:07:13","date_gmt":"2017-10-17T00:07:13","guid":{"rendered":"http:\/\/himbap.com\/blog\/?p=2828"},"modified":"2017-10-17T00:07:13","modified_gmt":"2017-10-17T00:07:13","slug":"re-adding-accidently-deleted-statusreason-option-quick-tip","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=2828","title":{"rendered":"Re-adding accidently deleted statusreason option- Quick Tip"},"content":{"rendered":"<p><strong>Requirement<\/strong>: Have you been in a situation where you accidently deleted status reason option from quote entity and now want to add it back as soon as possible?? If yes then this article is going to help you.<\/p>\n<p><strong>Solution<\/strong>: While adding options to option set, it\u2019s value is generated automatically based on the option value prefix (<em>You can find this option under publisher<\/em>). Although it will display a prompt while resetting this value but we can change it based on our requirement.<br \/>\n<a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset1.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2829 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset1-300x101.png\" alt=\"resetoptionset1\" width=\"300\" height=\"101\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset1-300x101.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset1.png 476w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>But this is not possible for every field type for example status reason, while adding a value to status reason, we can\u2019t change it\u2019s value. In this article we are going to provide quick steps for how to re-add accidently deleted value in status reason, for example let\u2019s we deleted following In Progress value accidently from quote status reason field and now let\u2019s see how we can add it back:<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset3.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-full wp-image-2831 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset3.png\" alt=\"resetoptionset3\" width=\"271\" height=\"156\" \/><\/a><\/p>\n<p>1. Navigate to quote entity and open status reason field.<br \/>\n2. Click on Add button and re-add deleted option set.<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset4.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2832 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset4-300x184.png\" alt=\"resetoptionset4\" width=\"300\" height=\"184\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset4-300x184.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset4.png 615w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>3. Click on Save and Close and publish your changes.<br \/>\n4. Create a custom solution and just add only quote entity and only status reason field in your solution.<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset5.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2833 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset5-300x78.png\" alt=\"resetoptionset5\" width=\"300\" height=\"78\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset5-300x78.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset5-624x163.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset5.png 979w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>5. Export solution and unzip it.<br \/>\n6. Open customization in any xml editor.<br \/>\n7. Change new value with old value and Save your changes.<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset6.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-medium wp-image-2834 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset6-300x42.png\" alt=\"resetoptionset6\" width=\"300\" height=\"42\" srcset=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset6-300x42.png 300w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset6-624x87.png 624w, https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset6.png 1003w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>8. Now select all the files under solution folder and compressed.<br \/>\n9. Make sure to rename your zip folder with exact solution name.<br \/>\n10. Import your solution back to CRM and publish your changes.<br \/>\n11. Open status reason field now you should see old value again like following:<\/p>\n<p><a href=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset3.png\"><img decoding=\"async\" loading=\"lazy\" class=\" size-full wp-image-2831 aligncenter\" src=\"https:\/\/himbap.com\/blog\/wp-content\/uploads\/2017\/10\/resetoptionset3.png\" alt=\"resetoptionset3\" width=\"271\" height=\"156\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requirement: Have you been in a situation where you accidently deleted status reason option from quote entity and now want to add it back as soon as possible?? If yes then this article is going to help you. Solution: While adding options to option set, it\u2019s value is generated automatically based on the option value prefix (You can find this&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=2828\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[402,5,6,8,275],"tags":[472,470,471],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2828"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2828"}],"version-history":[{"count":4,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2828\/revisions"}],"predecessor-version":[{"id":2839,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2828\/revisions\/2839"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}