deploying case status values from sandbox

after a long long time created a new support process in sandbox, and of course you cant deploy standard picklists with change sets.

if i had used devops center i would prob be sorted, but I would have to redo everything. i found it to be too much overhead to deal with for what we needed, and havent played with it recently.

so instead, i did the following

1) include the support process in the change set

2) retrieve case status via metadataapi / workbench

create a file named package.xml and include this and only this

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>CaseStatus</members>
        <name>StandardValueSet</name>
    </types>
    <version>61.0</version>
</Package>

login to workbench in the sandbox, and go to migration - retrieve, and select that file.

that will give you a nice zip file with all of your case status values.

deploy that to production using workbench, then deploy your change set.

that should do the trick.

if you want to get fancy you could export the change set as a package, and then also include the case status, and deploy the whole thing together, but that seems like more work than just doing em separately.

 
2
Kudos
 
2
Kudos

Now read this

Evaluating isSandbox in flow

In Summer 14, Salesforce added the isSandbox boolean field to the Organization object that can be easily queried in apex. In flow, process builder, and workflow rules, you can access the $organization global variable via a formula field,... Continue →