Getting Started with the Copado Extensions Tool
Resource : https://docs.copado.com/articles/#!copado-developer-center-publication/copado-extensions
What is Copado Extensions Tool?
Copado has accumulated result-oriented DevOps practices that help enterprises set the top business priorities and accelerate their digital transformation journey. With Copado, you can enable your org to integrate with different testing tools, automate manual tasks and deploy changes to other clouds and platforms.
Copado allows you to install out-of-the-box extensions from the DevOps Exchange that you can integrate with Copado and personalize the solution.
As the latest advancement, Copado has added the capability to generate records from existing Copado extensions or create your own Copado extensions using Copado Extensions tool.
Install Copado Extensions and generate the records.
Convert Functions and Job Templates into a packageable format.
When navigating the Copado Extensions record page, you will notice two sub-tabs - Extension Setup and Create Extension. Let’s talk about the use of these subtabs in detail.
Extension Setup
By utilizing this sub-tab, you can generate records for the extensions already installed in Copado.
Steps to generate extension from existing records
1. Go to App Launcher and Search for Copado Extensions.
2. Select Copado Extensions tab.
3. From the Copado Extensions tab record page, navigate to the Extension Setup.
4. Select your Extension from Select Extensions dropdown.
5. Click Generate Extension Records.
Create Extension
Create Extension subtab enables you to prepare Function and Job Template records to be packageable as an extension
Let’s take a look at the steps of generating a JSON file.
1. Go to App Launcher and Search for Copado Extensions.
2. Select Copado Extensions tab.
3. From the Copado Extensions tab record page, navigate to the Create Extension.
4. Select the objects you want to use to create extensions, such as Functions or Job Templates. When you select the objects and record, you will see JSON records.
5. Now, select the records and click Create Extension. This will create the JSON file for you.
Upload JSON File as Static Resource
What’s a static resource anyway?
A static resource is content one can upload to Salesforce as a file in different formats, such as JSON files, and used later on within Salesforce for different purposes and also be included in an unlocked or managed package.
Here are the steps to create a static resource record:
1. Log in to Copado and click the gear cog icon.
2. Click Setup and search Static Resources in the Quick Find box.
3. Click New to create a new static resource.
4. Give your static resource a meaningful name, e.g., MuleSoftExtensionBundle.
5. Provide a description if required and upload the generated JSON file.
6. Leave the Cache Control picklist as is and click Save.
Create Custom Metadata Types
Once you have created the static resource, the next step is creating custom metadata types to define the extension settings. This is the final step of creating an extension.
Custom metadata types let you create your own setup objects whose records are metadata rather than data. Follow these steps to create the custom metadata types:
1. Login to Copado and click the gear cog icon.
2. Click Setup and search Custom Metadata Types in the Quick Find box.
3. Click Manage Records next to the StandardResources custom metadata type.
4. Click New to create a new record and enter the label for your standard resource.
5. Provide the name of your standard resource, e.g., MuleSoftExtensionBundle.
6. In the Static Resource Name field, provide the name of the static resource you created and save your changes.
Now when you go back to the Copado Extensions record page, you will see the extension you created under Select Extension dropdown. You can select this extension and click Generate Extension Records to generate the DevOps data. 😀
Subscribe to my newsletter
Read articles from Tarun Gupta directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Tarun Gupta
Tarun Gupta
Sr. Salesforce Developer | 2x Salesforce Certified | 5X Copado Certified | 3x Ranger | 9x Superbadge | 4x Salesforce Mentor | 1x Copado Mentor | NodeJs | JavaScript