@mdapi-issues/listmetadata-recordtype-personaccount
v3.0.0
Published
Minimal working example to demonstrate a bug in listMetadata that RecordTypes of PersonAccount are wrongly listed as RecordTypes of Account
Downloads
897
Maintainers
Readme
listmetadata-recordtype-personaccount
Minimal working example to demonstrate a bug in listMetadata that RecordTypes of PersonAccount are wrongly listed as RecordTypes of Account
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"
}
]