In this example, Our goal is to configure the mta.yml file in order to create a destination.
We will be following below steps-
- 1. Add the mta.yml file (if not present).
- 2. Add the required service in module section on mta.yml file.
- 3. Define the Destination configurations in mta.yml file.
- 4. Define the Destination service on resources.
Step 1 - Add the mta.yml file (if not present)
If your CAP Application doesnot have mta file, then use the below command to add it.
Step 2 - Add the required service in module section on mta.yml file
In the mta.yml file in modules section under requires add the destination service name.
For example, we are using the name test-app-destination-service
Step 3 - Define the Destination configurations in mta.yml file
We are defining the Service name as test-application-destinations
And in the required section we are declaring test-app-destination-service which we defined above in the module.
Be careful with the names.
Step 4 - Define the Destination service on resources
In the mta.yml under resources section, define the destination service (with the same name as we defined in the modules on step 2).
So, your mta.yml file would look like below -
Note - Our application name and id is test-application
And it is done !!!