Socket
Book a DemoInstallSign in
Socket

@mdapi-issues/listmetadata-installed-missing-namespaceprefix

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdapi-issues/listmetadata-installed-missing-namespaceprefix

Minimal working example to demonstrate a bug in listMetadata where installed components of some metadata types are not prefixed with the namespace

Source
npmnpm
Version
2.0.1
Version published
Weekly downloads
80
2.56%
Maintainers
1
Weekly downloads
 
Created
Source

listmetadata-installed-missing-namespaceprefix

Minimal working example to demonstrate a bug in listMetadata where installed components of some metadata types are not prefixed with the namespace

Actions Status

Affected metadata types:

  • CustomMetadata
  • Layout
  • QuickAction

Steps to reproduce the issue

Clone this repository.

Create a scratch org and install a dummy managed package

yarn
yarn develop

list e.g. Layouts using listMetadata

sfdx force:mdapi:listmetadata -m Layout
- actual
+ expected
[
   {
     "createdById": "00563000006alGRAAY",
     "createdByName": "User User",
     "createdDate": "1970-01-01T00:00:00.000Z",
-    "fileName": "customMetadata/mdapidummy2gen__Dummy_Configuration.Test.md",
-    "fullName": "mdapidummy2gen__Dummy_Configuration.Test",
+    "fileName": "customMetadata/mdapidummy2gen__Dummy_Configuration.mdapidummy2gen__Test.md",
+    "fullName": "mdapidummy2gen__Dummy_Configuration.mdapidummy2gen__Test",
     "id": "m010V000000sZ56QAE",
     "lastModifiedById": "00563000006alGRAAY",
     "lastModifiedByName": "User User",
     "lastModifiedDate": "1970-01-01T00:00:00.000Z",
     "manageableState": "installed",
     "namespacePrefix": "mdapidummy2gen",
     "type": "CustomMetadata"
   },
   {
     "createdById": "00563000006alGRAAY",
     "createdByName": "User User",
     "createdDate": "1970-01-01T00:00:00.000Z",
-    "fileName": "layouts/mdapidummy2gen__Vehicle__c-Vehicle Layout.layout",
-    "fullName": "mdapidummy2gen__Vehicle__c-Vehicle Layout",
+    "fileName": "layouts/mdapidummy2gen__Vehicle__c-mdapidummy2gen__Vehicle Layout.layout",
+    "fullName": "mdapidummy2gen__Vehicle__c-mdapidummy2gen__Vehicle Layout",
     "id": "00h63000002UAkxAAG",
     "lastModifiedById": "00563000006alGRAAY",
     "lastModifiedByName": "User User",
     "lastModifiedDate": "1970-01-01T00:00:00.000Z",
     "manageableState": "installed",
     "namespacePrefix": "mdapidummy2gen",
     "type": "Layout"
   },
   {
     "createdById": "00563000006alGRAAY",
     "createdByName": "User User",
     "createdDate": "1970-01-01T00:00:00.000Z",
-    "fileName": "quickActions/mdapidummy2gen__Vehicle__c.Deprecate.quickAction",
-    "fullName": "mdapidummy2gen__Vehicle__c.Deprecate",
+    "fileName": "quickActions/mdapidummy2gen__Vehicle__c.mdapidummy2gen__Deprecate.quickAction",
+    "fullName": "mdapidummy2gen__Vehicle__c.mdapidummy2gen__Deprecate",
     "id": "09Dd00000000oIjEAI",
     "lastModifiedById": "00563000006alGRAAY",
     "lastModifiedByName": "User User",
     "lastModifiedDate": "1970-01-01T00:00:00.000Z",
     "manageableState": "installed",
     "namespacePrefix": "mdapidummy2gen",
     "type": "QuickAction"
   }
 ]

Keywords

salesforce

FAQs

Package last updated on 13 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts