How to find the Salesforce Deployment Id in Copado

You might need to associate a particular deployment in a target org with the deployment record in Copado. In order to do this, you can use the Salesforce Id that is assigned to every deployment executed in the org. If you navigate to the target org, Setup | Deployment Status page, you will see all the deployments performed to that org. You can open the details for one of them and you will find the Salesforce Deployment Id.
User-added image
This Id is linked a Deployment Job record in Copado
User-added image

The Deployment Job record is linked to a Step record, which is the Deployment Step in the Deployment record.
User-added image
Now that we know how where the Salesforce Deployment Id is located, how do we find it easily? We will have to create a new Report Type. In the Salesforce Documentation Create a Custom Report Type you will find instructions to create a Report Type.

The objects and relationship in the report type will be the following:
(A) Deployments >> (B) Steps >> (C) Deployment Jobs
User-added image

Once the Report Type is created, you can create a report and filter the results with the "Async Job Id" to find the Copado Deployment record associated with that Salesforce Id.
User-added image

From that report, you will get access easily not only to the deployment record that match that deployment in the target org but also to the Step and Deployment Job records.

Note that the Id in the Deployment Status section is 15 characters long while the Id in the Copado Job record is 18 character long therefore when filtering in the report you must either convert the 15 characters Id into 18 character id and use the operator "Equals" or use the 15 characters Id with the operator "Contains". You can any Salesforce Ids converter like https://sf1518.click/

 

How did we do?