{"id":20983147,"url":"https://github.com/pozil/picklist-utils","last_synced_at":"2025-03-13T10:41:09.729Z","repository":{"id":38845442,"uuid":"365970528","full_name":"pozil/picklist-utils","owner":"pozil","description":"Apex utility class for working with Picklists with built-in cache","archived":false,"fork":false,"pushed_at":"2023-06-01T11:56:50.000Z","size":255,"stargazers_count":21,"open_issues_count":4,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-20T07:07:58.447Z","etag":null,"topics":["apex","api","dynamic","picklist","ui"],"latest_commit_sha":null,"homepage":"","language":"Apex","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pozil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-10T08:25:41.000Z","updated_at":"2025-01-07T12:03:23.000Z","dependencies_parsed_at":"2024-11-19T05:51:38.406Z","dependency_job_id":null,"html_url":"https://github.com/pozil/picklist-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pozil%2Fpicklist-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pozil%2Fpicklist-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pozil%2Fpicklist-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pozil%2Fpicklist-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pozil","download_url":"https://codeload.github.com/pozil/picklist-utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243392280,"owners_count":20283559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apex","api","dynamic","picklist","ui"],"created_at":"2024-11-19T05:47:55.402Z","updated_at":"2025-10-14T12:11:46.390Z","avatar_url":"https://github.com/pozil.png","language":"Apex","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI Workflow](https://github.com/pozil/picklist-utils/workflows/CI/badge.svg)](https://github.com/pozil/picklist-utils/actions?query=workflow%3ACI) [![Packaging Workflow](https://github.com/pozil/picklist-utils/workflows/Packaging/badge.svg)](https://github.com/pozil/picklist-utils/actions?query=workflow%3APackaging) [![codecov](https://codecov.io/gh/pozil/picklist-utils/branch/main/graph/badge.svg)](https://codecov.io/gh/pozil/picklist-utils)\n\n# PicklistUtils\n\nApex utility class for working with Picklists with built-in cache.\n\nClick [this link](https://login.salesforce.com/packaging/installPackage.apexp?p0=04t5e000000MIe8AAG) to install the PicklistUtils unlocked package in your org.\n\nReference:\n\n1. [Working without record types](#working-without-record-types)\n    1. Working with object and field references\n    1. Working with object and field names as strings\n1. [Working with record types](#working-with-record-types)\n1. [Working with case statuses](#working-with-case-statuses)\n\n## Working without record types\n\n### Working with object and field references\n\n```\nList\u003cSchema.PicklistEntry\u003e getPicklistValues(\n  sObjectType sObjectType,\n  Schema.sObjectField field\n)\n```\n\nExample:\n\n```\nList\u003cSchema.PicklistEntry\u003e entries = PicklistUtils.getPicklistValues(\n  Account.sObjectType,\n  Account.Industry\n);\n```\n\n### Working with object and field names as strings\n\n```\nList\u003cSchema.PicklistEntry\u003e getPicklistValues(\n  String objectName,\n  String fieldName\n)\n```\n\nExample:\n\n```\nList\u003cSchema.PicklistEntry\u003e entries = PicklistUtils.getPicklistValues(\n  'Account',\n  'Industry'\n);\n```\n\n## Working with record types\n\n```\nPicklistEntries getPicklistValues(\n  String objectName,\n  Id recordTypeId,\n  String fieldName\n)\n```\n\nExample:\n\n```\nPicklistUtils.PicklistEntries entries = PicklistUtils.getPicklistValues(\n  'CustomerRequest__c',\n  '0124H000000cz6R',\n  'Priority__c'\n);\n```\n\n## Working with case statuses\n\n```\nList\u003cCaseStatus\u003e getCaseStatusValues(\n  Boolean isCaseClosed\n)\n```\n\nExample:\n\n```\nList\u003cCaseStatus\u003e values = PicklistUtils.getCaseStatusValues(\n  true\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpozil%2Fpicklist-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpozil%2Fpicklist-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpozil%2Fpicklist-utils/lists"}