Pactman Image Error

Migrate an Apex GuideStar charity check to Pactman

If your Salesforce Apex code uses the legacy GuideStar charity check, trace its flow in the code before making any modifications. Candid has retired the legacy API, and the Salesforce Foundation has placed its wrapper Apex class into archive status. This migration is for the EIN lookup that you have created as custom Apex. Refer to Salesforce’s Candid Premier documentation for their internal tax-status check within Grants Management. Migrate organization search, detail, and Exchange calls separately if your application uses them.

Archived Apex wrapper · Candid retirement notice · Salesforce migration instructions

Start with the old call. Set up the new client in a sandbox before editing it.

Set up the Apex SDK in a sandbox

Clone the Pactman SDK, and install the source code of it in a sandbox. The folder “examples” is where the testing classes can be found, and they need not be included in this deployment process. From the Salesforce setup screen, navigate to Named Credentials -> External Credentials. Open Pactman API Key and change the authentication parameter of the named principal to the token value. The Salesforce platform automatically prefixes the value with Bearer. Assign the Pactman Nonprofit Check User permission set to the person who will run the lookup.

git clone https://github.com/PledgeSoftwareTX/new-pactman-nonprofitcheck-salesforce-sdk.git
cd new-pactman-nonprofitcheck-salesforce-sdk
sf project deploy start --source-dir force-app --target-org <sandbox-alias>

SDK installation and credentials

With access set up, send one request and look at the debug log.

Run the demo in Execute Anonymous

The first test should be done with Execute Anonymous by comparing the name found in the debug logs to the name expected. The code will work using either the public demo credentials or a key authorized for that EIN.

PactmanClient client = new PactmanClient();
PactmanSingleCheckResult result = client.nonprofits.check('68-0343125');
System.debug(result.nonprofit.ein);
System.debug(result.nonprofit.organization_name);
System.debug(result.nonprofit.bmf_status);
System.debug(result.nonprofit.pub78_verified);
System.debug(result.nonprofit.revocation_date);
System.debug(result.nonprofit.ofac_status);

Salesforce Developer Edition test, December 4, 2026
Organization: TREE HOUSE SENIOR APARTMENTS INC
IRS Business Master File status: true
Publication 78 verified: true
Revocation date: null
OFAC message: no inclusion on the SDN list
Separate direct API check: HTTP 200 and the same values.

API reference and demo credential

Use the results to check how your automation handles each source.

Before switching the automation

Use the EIN and organization name to match the Salesforce record. Check each item separately.

Where it matters to the workflow, distinguish an omitted field from one returned as null. Record the OFAC response in text format and send possible matches or missing or conflicting evidence to a reviewer.

Prior to turning on the automation, use the SDK mocks to check authentication failures, missing records, and rate limits.

SDK mock examples · Pactman verification guide

Leave a Reply

Your email address will not be published. Required fields are marked *

Our Trending Posts

Recent Post