Skip to content

Instantly share code, notes, and snippets.

@msrivastav13
Created July 15, 2021 04:01
Show Gist options
  • Save msrivastav13/9cadf45ab8666747ee563a627afe8e84 to your computer and use it in GitHub Desktop.
Save msrivastav13/9cadf45ab8666747ee563a627afe8e84 to your computer and use it in GitHub Desktop.
Changeset in Salesforce
{
"version": "2.0.0",
"tasks": [
{
"label": "Retrieve From ChangeSet",
"type": "shell",
"command": "sfdx",
"args": [
"force:source:retrieve",
"-n",
"${input:changesetname}",
"-u",
"${input:sourceenvironment}"
],
"group": "build",
"problemMatcher": [],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "new",
"showReuseMessage": true,
"clear": false
}
},
{
"label": "Deploy ChangeSet",
"type": "shell",
"command": "sfdx",
"args": [
"force:source:deploy",
"-p",
"${input:changesetname}/main/default",
"-u",
"${input:targetenvironment}"
],
"group": "build",
"problemMatcher": [],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "new",
"showReuseMessage": true,
"clear": false
}
}
],
"inputs": [
{
"id": "changesetname",
"description": "Enter Changeset Name:",
"type": "promptString"
},
{
"id": "sourceenvironment",
"description": "Select Environment To Retrieve",
"type": "pickString",
"options": [
"dev1",
"dev4",
"uat"
]
},
{
"id": "targetenvironment",
"description": "Select Environment To Deploy",
"type": "pickString",
"options": [
"dev1",
"dev4",
"uat"
]
}
]
}
@Mycoola
Copy link

Mycoola commented Sep 14, 2022

I like it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment