From d890a751ea1d4bbfd2f456d3dd9f8d073d385ce5 Mon Sep 17 00:00:00 2001 From: Peter van Gulik Date: Thu, 27 Jun 2024 09:49:47 +0200 Subject: [PATCH] feat: add metadataUrls for Flow, ValidationRule, RecordType, and CompactLayout The metadataUrls.json file was updated to include new metadata types: Flow, ValidationRule, RecordType, and CompactLayout. This change allows for easier querying and navigation to specific records of these types. --- packages/salesforce/src/metadataUrls.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/salesforce/src/metadataUrls.json b/packages/salesforce/src/metadataUrls.json index d29875fb..9e3ed9cc 100644 --- a/packages/salesforce/src/metadataUrls.json +++ b/packages/salesforce/src/metadataUrls.json @@ -129,6 +129,26 @@ "nameField": "MasterLabel", "query": "select Id from StandardValueSet where MasterLabel = '${name}'" }, + "Flow": { + "nameField": "DeveloperName", + "query": "select Id from FlowDefinition where ${nameField} = '${name}'", + "url": "lightning/setup/Flows/page?address=/${id}" + }, + "ValidationRule": { + "nameField": "ValidationName", + "query": "select Id from ${type} where ${nameField} = '${metadata.fullName}'" + }, + "RecordType": { + "strategy": "standard", + "nameField": "DeveloperName", + "query": "select Id from ${type} where ${nameField} = '${metadata.fullName}' and SobjectType = '${fullName.split('.').shift()}'", + "url": "lightning/setup/ObjectManager/${fullName.split('.').shift()}/RecordTypes/${id}/view" + }, + "CompactLayout": { + "nameField": "DeveloperName", + "query": "select Id from ${type} where ${nameField} = '${metadata.fullName}' and SobjectType = '${fullName.split('.').shift()}'", + "url": "lightning/setup/ObjectManager/${fullName.split('.').shift()}/CompactLayouts/${id}/view" + }, "CustomMetadata": { "strategy": "standard", "query": "select Id from ${fullName.split('.').shift()}__mdt where DeveloperName = '${fullName.split('.').pop()}'",