# !! Deployment Actions/Action Groups

Deployment helps to migrate Actions/Actions Group with their dependencies between organizations.

### Deployment

To deploy:

* Select Actions/Action Group and click "Deploy" button. A deployment wizard page will be opened in a new tab.

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2Fh1lWbivisrPUZdgrd6MN%2Ffile.excalidraw.svg?alt=media&#x26;token=8e5cbd3c-d8b4-4063-a996-c75bc0d040db" alt="" class="gitbook-drawing">

* At the first step in deployment wizard select Server, enter user credentials and click "Next" button:

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2FromopLHz52nrC5zB37Ru%2Ffile.excalidraw.svg?alt=media&#x26;token=3e13d15c-a5ac-41ea-aeb3-586a916d6620" alt="" class="gitbook-drawing">

{% hint style="info" %}
Server: type of the target organization - Sandbox, Production/development or Other .&#x20;

Other is used when there are issues with login and you may need to manually enter your target organization Salesforce base URL. To get it go to your target org, switch to the classic mode. Base URL is the part which ends with "salesforce.com".
{% endhint %}

* System will search for references for the actions for a some time:

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2FFQFGT3T41aZotov9HYL9%2Ffile.excalidraw.svg?alt=media&#x26;token=70dfd542-9663-4731-a104-95672814c941" alt="" class="gitbook-drawing">

* At the second step of deployment wizard check items to be deployed. Select necessary actions and click "Deploy" button.

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2FdoF9q4gSimT9CtReyWan%2Ffile.excalidraw.svg?alt=media&#x26;token=47ec8fc0-b032-4ab9-a2e4-f76ca0bbed85" alt="" class="gitbook-drawing">

* Click "OK" in confirmation message.
* System will display a deployment progress:

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2F5Pbbow3x47qd3Qms1hlk%2Ffile.excalidraw.svg?alt=media&#x26;token=1a33d408-6b39-46e8-8678-9f1661b28391" alt="" class="gitbook-drawing">

* After deployment is finished, system will show results in "Status" column. And, if there were no errors or fails, system will show a success confirmation message:

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2Frzk1NrV6ogLOP9a4rJXK%2Ffile.excalidraw.svg?alt=media&#x26;token=3836c929-f540-4157-8e9e-35d764ab53f2" alt="" class="gitbook-drawing">

Deployment is finished. Target organization should now have all deployed objects.

### Deployment Actions

#### Object Does Not Exist in Target Organization

If the Action/Action Groups does not exist in target organization, they will have "Create" action available only.

After deployment is done, new Action is added to the target organization along with other referenced objects.

#### Object Exists in Target Organization

If the Action/Action Groups already exists in the target organization, deployment wizard will allow user to choose between "Create" and "Overwrite" actions. "Overwrite" is offered by default:

<img src="https://3097383375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK2dgObBO5ydOH2ZXDJLa%2Fuploads%2FOoBPomtA6G6vem0vqcMA%2Ffile.excalidraw.svg?alt=media&#x26;token=3d61d26c-da19-44c4-866e-1ed1422e1c03" alt="" class="gitbook-drawing">

**Create**:

In this case, if user selects "Create" for any object, new object of proper type will be deployed to the target organization.

**Overwrite**:

If user selects "Overwrite", proper objects will be overwritten during deployment.
