# @mdapi-issues/listmetadata-recordtype-personaccount

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

Latest version **3.0.0** (published 2024-11-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mdapi-issues/listmetadata-recordtype-personaccount
pnpm add @mdapi-issues/listmetadata-recordtype-personaccount
yarn add @mdapi-issues/listmetadata-recordtype-personaccount
bun add @mdapi-issues/listmetadata-recordtype-personaccount
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2024-11-13 |
| First published | 2020-11-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matthias Rolke @amtrack |
| Maintainers | amtrack |
| Keywords | salesforce, mdapi-issue, minimum-working-example, MWE |

## Links

- npm: https://www.npmjs.com/package/@mdapi-issues/listmetadata-recordtype-personaccount
- Repository: https://github.com/mdapi-issues/listmetadata-recordtype-personaccount
- Issues: https://github.com/mdapi-issues/listmetadata-recordtype-personaccount/issues
- npm.io page: https://npm.io/package/@mdapi-issues/listmetadata-recordtype-personaccount

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) 2.8.1

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2024-11-13
- 2.0.2 — 2022-10-19
- 2.0.1 — 2021-03-13
- 2.0.0 — 2021-03-13
- 1.0.2 — 2021-02-12
- 1.0.1 — 2021-02-10
- 1.0.0 — 2020-11-26

## README

# 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](https://github.com/mdapi-issues/listmetadata-recordtype-personaccount/workflows/Test%20and%20Release/badge.svg)](https://github.com/mdapi-issues/listmetadata-recordtype-personaccount/actions)

## Steps to reproduce the issue

Create a scratch org with PersonAccounts feature enabled

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

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

```console
sf project deploy start
```

list RecordTypes using `listMetadata`

```console
sf org list metadata -m RecordType
```

```diff
- actual
+ expected
```

```diff
[
  ...
  {
    "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

- [forcedotcom/cli#734: PersonAccount issues with listMetadata and deployment](https://github.com/forcedotcom/cli/issues/734)

---
_Source: https://npm.io/package/@mdapi-issues/listmetadata-recordtype-personaccount · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
