Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update references to API version & set version to 57.0 #1381

Merged
merged 1 commit into from
Apr 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
global with sharing class DeployMetadata {

private static final Integer METADATA_API_VERSION = 57;

@AuraEnabled
global static String deploy(String metadataText, String metadataName, String testLevel, String objectType) {
System.debug('entering deploy. metadata text, objectname, testlevel, and object type are:' );
Expand Down Expand Up @@ -110,14 +113,14 @@ global with sharing class DeployMetadata {
'<members>' + className + '</members>' +
'<name>' + objectType +'</name>' +
'</types>' +
'<version>51.0</version>' +
'<version>' + METADATA_API_VERSION + '.0</version>' +
'</Package>';
}

public static String getStandardApexClassMetadata(){
return '<?xml version="1.0" encoding="UTF-8"?>' +
'<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">' +
'<apiVersion>48.0</apiVersion>' +
'<apiVersion>' + METADATA_API_VERSION + '.0</apiVersion>' +
'<status>Active</status>' +
'</ApexClass>';
}
Expand All @@ -126,7 +129,7 @@ global with sharing class DeployMetadata {
{
String boilerplate = '<?xml version="1.0" encoding="UTF-8"?>' +
'<Flow xmlns="http://soap.sforce.com/2006/04/metadata">' +
'<apiVersion>51.0</apiVersion>' +
'<apiVersion>' + METADATA_API_VERSION + '.0</apiVersion>' +
'<status>Active</status>' +
'</Flow>';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
**/

/**
* Eric Smith - 4/2/23
*
* Update references to API version
*
* Eric Smith - 9/3/20
*
* Escaped {} characters in the Extracted File String so it could be processed in a Flow
Expand All @@ -44,7 +48,7 @@

global with sharing class RetrieveMetadata
{
private static final Integer METADATA_API_VERSION = 49;
private static final Integer METADATA_API_VERSION = 57;

global static List<SelectOption> MetaDataTypes {get; set;}
global static String MetaDataType {get; set;}
Expand Down Expand Up @@ -238,7 +242,7 @@ RetrieveResult retrieveResult = metadataConnection.checkRetrieveStatus(response.
'<members>' + flowName + '</members>' +
'<name>Flow</name>' +
'</types>' +
'<version>51.0</version>' +
'<version>' + METADATA_API_VERSION + '.0</version>' +
'</Package>';
}

Expand Down