Custom object to represent legislation and call outs to Sunlight Foundation's realtime Congress API to update legislation and pull roll call votes.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This package allows for easy tracking of legislation in It consists of a collection of custom objects and REST callouts to the Sunlight Labs Real Time Congress API.


  1. deploy code
  2. override new button for legislation: newLegislation visualforce page
  3. assign Legislation Admin permission set to desired users

Real Time Congress API

Sunlight labs has a no-cost API that provides access to a wealth of congressional information. Bills, amendments, votes, etc. It's all accessible through an easy to use API.

This package takes your sunlight API key and communicates automatically with the API to keep your Salesforce information up to date.

Congresperson Data

Tracking bills is helpful, and connecting those bills to congresspeople is where real engagement can take place. Cosponsors, voters, influencers, all can be tracked through use of the bioguide id that each congressperson has. This data is freely available from govtrak:

Listing of all members of the 112th session: Schema:

KnowWho has an excellent Appexchange product that gives you access to all congresspeople, staffers, and a ton more directly in your Salesforce instance:


Code contributed by Iraq and Afghanistan Veterans of America. Originally written by Exponent Partners. Modified by Foundation.