@mdapi-issues/listmetadata-standardvaluesettranslation-type

Minimal working example to demonstrate a bug in listMetadata where the FileProperties for StandardValueSetTranslation have a broken type property

Usage no npm install needed!

<script type="module">
  import mdapiIssuesListmetadataStandardvaluesettranslationType from 'https://cdn.skypack.dev/@mdapi-issues/listmetadata-standardvaluesettranslation-type';
</script>

README

listmetadata-standardvaluesettranslation-type

Minimal working example to demonstrate a bug in listMetadata where the FileProperties for StandardValueSetTranslation have a broken type property

Actions Status

Steps to reproduce the issue

Create a scratch org with the Translation Workbench enabled

sfdx force:org:create -f config/project-scratch-def.json -s

push some translation for a StandardValueSet (here: StandardValueSetTranslation:LeadSource-de)

sfdx force:source:push

list StandardValueSetTranslations using listMetadata

sfdx force:mdapi:listmetadata -m StandardValueSetTranslation
- actual
+ expected
[
  {
    "createdById": "005P00000063pPzIAI",
    "createdByName": "User User",
    "createdDate": "1970-01-01T00:00:00.000Z",
    "fileName": "standardValueSetTranslations/LeadSource-de.standardValueSetTranslation",
    "fullName": "LeadSource-de",
    "id": "",
    "lastModifiedById": "005P00000063pPzIAI",
    "lastModifiedByName": "User User",
    "lastModifiedDate": "1970-01-01T00:00:00.000Z",
    "namespacePrefix": "",
-    "type": { "quot;: { "xsi:nil": "true" } }
+    "type": "StandardValueSetTranslation"
  }
]