Connect VolunteerMatch API with Salesforce

VolunteerMatch is a Non-Profit Organization that provides an online platform for communities to connect. Using VolunteerMatch API we can retrieve the communities and event data within salesforce and use that as per your needs especially in Non-Profit Cloud in Salesforce.

VolunteerMatch API Guide

  1. To Connect The VolunteerMatch with Salesforce first install https://github.com/abhimanyud3dx/Volunteer-Match-API-Salesforce to your Salesforce Org.
  2. Add VolunteerMatch API Credentials in Custom Metadata
    • Go to Quick Find/Search.
    • Type Custom Metadata and click on Custom Metadata Types.
    • Click on “Manage Records” for “Volunteer Match Credential”.
    • For Stage Click New, enter the following values and save.
      Field NameValues
      LabelVolunteerMatchAPIStage
      NameVolunteerMatchAPIStage
      URLhttps://www.stage.volunteermatch.org
      UsernameUsername for VolunteerMatch
      KeyEnter Key for VolunteerMatch
    • For Production Click New, enter the following values and save.
      Field NameValues
      LabelVolunteerMatchAPI
      NameVolunteerMatchAPI
      URLhttps://www.volunteermatch.org
      UsernameUsername for VolunteerMatch
      KeyEnter Key for VolunteerMatch

After the Credentials are set you are good to test the API, just copy the code below and run it in the Execute Anonymous Window in Developer Console and then check the debug logs.

System.debug(
 new SearchOpportunitiesExample().searchOpportunity('{ "location": "san francisco, ca",'+
 '"opportunityTypes": ["public"],'+
 '"sortOrder": "asc",'+
 '"sortCriteria": "orgname",'+
 '"pageNumber": 1,'+
 '"numberOfResults": 10,'+
 '"fieldsToDisplay": ["id", "title", "location"]'+
 '}')
);

Was this post useful? If yes then please share.



Leave a Comment

All fields marked with an asterisk (*) are required


shares