Skip to content

Commit

Permalink
feat: add metadataUrls for Flow, ValidationRule, RecordType, and Comp…
Browse files Browse the repository at this point in the history
…actLayout

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.
  • Loading branch information
Codeneos committed Jun 27, 2024
1 parent 81c65cf commit d890a75
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/salesforce/src/metadataUrls.json
Original file line number Diff line number Diff line change
Expand Up @@ -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()}'",
Expand Down

0 comments on commit d890a75

Please sign in to comment.