fixed deploy errors
This commit is contained in:
@@ -238,7 +238,7 @@ public inherited sharing class CreateCaseAutoResponseRule {
|
|||||||
ruleEntry != null,
|
ruleEntry != null,
|
||||||
'The retrieved Case auto-response rule file is missing.'
|
'The retrieved Case auto-response rule file is missing.'
|
||||||
);
|
);
|
||||||
String sourceXml = reader.extractEntry(ruleEntry).toString();
|
String sourceXml = reader.extract(ruleEntry).toString();
|
||||||
String updatedXml = appendRuleEntry(sourceXml, configuration);
|
String updatedXml = appendRuleEntry(sourceXml, configuration);
|
||||||
|
|
||||||
String packageXml =
|
String packageXml =
|
||||||
|
|||||||
@@ -87,14 +87,14 @@ public inherited sharing class CreateListView {
|
|||||||
String fullName = input.objectApiName + '.' + apiName;
|
String fullName = input.objectApiName + '.' + apiName;
|
||||||
Boolean existed =
|
Boolean existed =
|
||||||
MetadataApiClient.readMetadata('ListView', fullName) != null;
|
MetadataApiClient.readMetadata('ListView', fullName) != null;
|
||||||
String metadataXml =
|
String listViewXml =
|
||||||
'<fullName>' +
|
'<fullName>' +
|
||||||
MetadataXml.escape(fullName) +
|
MetadataXml.escape(fullName) +
|
||||||
'</fullName>';
|
'</fullName>';
|
||||||
for (String column : columns) {
|
for (String column : columns) {
|
||||||
metadataXml += '<columns>' + MetadataXml.escape(column) + '</columns>';
|
listViewXml += '<columns>' + MetadataXml.escape(column) + '</columns>';
|
||||||
}
|
}
|
||||||
metadataXml +=
|
listViewXml +=
|
||||||
'<filterScope>Queue</filterScope>' +
|
'<filterScope>Queue</filterScope>' +
|
||||||
'<filters><field>' +
|
'<filters><field>' +
|
||||||
MetadataXml.escape(statusField(input.objectApiName)) +
|
MetadataXml.escape(statusField(input.objectApiName)) +
|
||||||
@@ -106,7 +106,7 @@ public inherited sharing class CreateListView {
|
|||||||
MetadataXml.escape(queues[0].DeveloperName) +
|
MetadataXml.escape(queues[0].DeveloperName) +
|
||||||
'</queue>';
|
'</queue>';
|
||||||
|
|
||||||
MetadataApiClient.upsertMetadata('ListView', metadataXml);
|
MetadataApiClient.upsertMetadata('ListView', listViewXml);
|
||||||
Result result = new Result();
|
Result result = new Result();
|
||||||
result.listViewApiName = apiName;
|
result.listViewApiName = apiName;
|
||||||
result.metadataFullName = fullName;
|
result.metadataFullName = fullName;
|
||||||
|
|||||||
Reference in New Issue
Block a user