Skip to content

Commit

Permalink
#296 adding examples for createEnvVariables json and createEnvironmen…
Browse files Browse the repository at this point in the history
…t Apex Code
  • Loading branch information
Daniel Ventura committed Dec 19, 2022
1 parent e63464d commit 5c90bfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"_ParentBU_":[{"environmentVariables":[{"name":"suffix","value":"_Parent"}],"properties":[{"propertyName":"CredentialName","apiName":"credential_name","value":"CREDENTIAL_NAME","hideValue":false},{"propertyName":"MID","apiName":"mid","value":"1111111","hideValue":false}]}]},{"MCDEV_Training_DEV":[{"environmentVariables":[{"name":"suffix","value":"_DEV"}],"properties":[{"propertyName":"CredentialName","apiName":"credential_name","value":"CREDENTIAL_NAME","hideValue":false},{"propertyName":"MID","apiName":"mid","value":"2222222","hideValue":false}]}]},{"MCDEV_Training_Prod_1":[{"environmentVariables":[{"name":"suffix","value":"_PROD1"}],"properties":[{"propertyName":"CredentialName","apiName":"credential_name","value":"CREDENTIAL_NAME","hideValue":false},{"propertyName":"MID","apiName":"mid","value":"33333333","hideValue":false}]}]},{"MCDEV_Training_Prod_2":[{"environmentVariables":[{"name":"suffix","value":"_PROD2"}],"properties":[{"propertyName":"CredentialName","apiName":"credential_name","value":"CREDENTIAL_NAME","hideValue":false},{"propertyName":"MID","apiName":"mid","value":"4444444","hideValue":false}]}]},{"MCDEV_Training_QA":[{"environmentVariables":[{"name":"suffix","value":"_QA"}],"properties":[{"propertyName":"CredentialName","apiName":"credential_name","value":"CREDENTIAL_NAME","hideValue":false},{"propertyName":"MID","apiName":"mid","value":"55555555","hideValue":false}]}]}]
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
copado.CreateExecution.Request request = new copado.CreateExecution.Request();
request.parentId = 'functionId';
request.templateName = 'jobTemplateApiName';
request.callback = 'mcdo_CreateEnvironments';
request.preSteps = new List<copado__JobStep__c>();
request.postSteps = new List<copado__JobStep__c>();
request.runAfterInstantiation = true; copado.CreateExecution.execute(new List<copado.CreateExecution.Request>{ request });

0 comments on commit 5c90bfd

Please sign in to comment.