npm.io
3.0.0 • Published 2 years ago

@mdapi-issues/listmetadata-recordtype-personaccount

Licence
MIT
Version
3.0.0
Deps
1
Size
6 kB
Vulns
0
Weekly
0

listmetadata-recordtype-personaccount

Minimal working example to demonstrate a bug in listMetadata that RecordTypes of PersonAccount are wrongly listed as RecordTypes of Account

Actions Status

Steps to reproduce the issue

Create a scratch org with PersonAccounts feature enabled

sf org create scratch -f config/project-scratch-def.json --set-default

push some Metadata (here: RecordType:PersonAccount.Freelancer)

sf project deploy start

list RecordTypes using listMetadata

sf org list metadata -m RecordType
- actual
+ expected
[
  ...
  {
    "createdById": "0053D0000050OT3QAM",
    "createdByName": "User User",
    "createdDate": "2020-11-18T13:31:01.000Z",
-    "fileName": "objects/Account.object",
+    "fileName": "objects/PersonAccount.object",
-    "fullName": "Account.PersonAccount",
+    "fullName": "PersonAccount.PersonAccount",
    "id": "0123D000001leARQAY",
    "lastModifiedById": "0053D0000050OT3QAM",
    "lastModifiedByName": "User User",
    "lastModifiedDate": "2020-11-18T13:31:01.000Z",
    "manageableState": "unmanaged",
    "type": "RecordType"
  },
  {
    "createdById": "0053D0000050OT3QAM",
    "createdByName": "User User",
    "createdDate": "2020-11-19T08:27:12.000Z",
-    "fileName": "objects/Account.object",
+    "fileName": "objects/PersonAccount.object",
-    "fullName": "Account.Freelancer",
+    "fullName": "PersonAccount.Freelancer",
    "id": "0123D000001ljZmQAI",
    "lastModifiedById": "0053D0000050OT3QAM",
    "lastModifiedByName": "User User",
    "lastModifiedDate": "2020-11-19T08:27:12.000Z",
    "manageableState": "unmanaged",
    "type": "RecordType"
  }
]

References

Keywords