fixed deploy errors
This commit is contained in:
@@ -87,14 +87,14 @@ public inherited sharing class CreateListView {
|
||||
String fullName = input.objectApiName + '.' + apiName;
|
||||
Boolean existed =
|
||||
MetadataApiClient.readMetadata('ListView', fullName) != null;
|
||||
String metadataXml =
|
||||
String listViewXml =
|
||||
'<fullName>' +
|
||||
MetadataXml.escape(fullName) +
|
||||
'</fullName>';
|
||||
for (String column : columns) {
|
||||
metadataXml += '<columns>' + MetadataXml.escape(column) + '</columns>';
|
||||
listViewXml += '<columns>' + MetadataXml.escape(column) + '</columns>';
|
||||
}
|
||||
metadataXml +=
|
||||
listViewXml +=
|
||||
'<filterScope>Queue</filterScope>' +
|
||||
'<filters><field>' +
|
||||
MetadataXml.escape(statusField(input.objectApiName)) +
|
||||
@@ -106,7 +106,7 @@ public inherited sharing class CreateListView {
|
||||
MetadataXml.escape(queues[0].DeveloperName) +
|
||||
'</queue>';
|
||||
|
||||
MetadataApiClient.upsertMetadata('ListView', metadataXml);
|
||||
MetadataApiClient.upsertMetadata('ListView', listViewXml);
|
||||
Result result = new Result();
|
||||
result.listViewApiName = apiName;
|
||||
result.metadataFullName = fullName;
|
||||
|
||||
Reference in New Issue
Block a user