The name of the contact’s manager to which this particular contact will report.ġ. The entry is selected from a picklist of available values, which the administrator sets.ġ. The record Source: for Example, Advertisement, Partner, or Web.Ģ. If a contact is not linked to an account then it is a “private” contact and only viewable by the contact owner or Salesforce administrator.ġ. GetContactList result = (getContactList)serialize(bodyprint, getContactList.class) įor(getContactList.Contacts in Salesforce store an individual’s demographic information, such as phone numbers and email addresses, and are linked to accounts. Req.setHeader(‘Authorization’, ‘Bearer ‘ + authtoken) īodyprint= response.getbody().replace(‘$’,’NN’) īodyprint = bodyprint.replace(‘id’,’googleId’) replace the above email with your email. Req.setEndpoint(‘ ajay.prasad% /full?alt=json ‘) GetAccessToken getAccessTokenFromGContactApi = (getAccessToken)serialize(res.getBody(), getAccessToken.class) Īuthtoken = getAccessTokenFromGContactApi.access_token Req.setHeader(‘Content-Type’,’application/x-www-form-urlencoded’) String body=’code=’+codeparam+’&client_id=’+CLIENT_ID+’&client_secret=’+CLIENT_SECRET+’&redirect_uri=’+REDIRECT_URL+’&’+GRANT_TYPE String codeparam=apexpages.currentpage().getparameters().get(‘code’) String x=OAUTH_CODE_END_POINT_URL+’?scope=’+EncodingUtil.urlEncode(SCOPE,’UTF-8′)+’&state=’+EncodingUtil.urlEncode(STATE,’UTF-8′)+’&redirect_uri=’+EncodingUtil.urlEncode(REDIRECT_URL,’UTF-8′)+’&response_type=code&client_id=’+CLIENT_ID Private string GRANT_TYPE=’grant_type=authorization_code’ Ĭode = ApexPages.currentPage().getParameters().get(‘code’) Private string OAUTH_CODE_END_POINT_URL=’’ Private string CLIENT_ID=’’ //Fill as per your registered app settings in google console Fill as per your registered app settings in google console Private string CLIENT_SECRET=’bc06rotrAxxxxxxxxxxxx2sId’ Create a VisualForce page named googleAuthContactPage.Open Developer console and create 2 apex class named googleAuthContactClass and getContactList.Now we have to create an apex class and visualforce page. Note: You need to write the following URL in the picture for Authorized Redirect URL and Consent Screen URL.Īfter clicking on the preview button on the VF page, we will get this URL. Step 4: Copy the Client ID and Client Secret for further process. Step 3: Now, we need to create credentials for client ID and client secret. Configure the OAuth consent screen with User Type external and follow the below steps.After the above step, click on the create button to create the project.Step 2: Create a new project for Contact API Step 1: Click on Enable APIs and Services and go to the Contact API. Create a visualforce page named googleAuthContactPage.Įnabling Google Contacts API Setting On Google Developer Console.Create two apex classes googleAuthContactClass and getContactList.Create a VisualForce page and Apex class to get access token and will fetch all contact details.Firstly, we need to create a new project for Google Contacts on the Google Developer Console.Process To Integrate Salesforce With Google Contactsīelow is the process we followed for Salesforce And Google Contacts Integration: Google Contacts’s capabilities also include creating a personal mailing list and quickly sending messages or invitations from the calendar to a group of people you contact frequently. Google Contacts allows you to manage all your contacts in one place by creating contact groups separated between customers, vendors, prospects, and others. Google Contacts is a powerful tool that you can use to organize, view, and manage your contacts. In this blog, we’ll provide a brief introduction to Salesforce and Google Contacts integration.īefore delving deeper into the process of integrating Salesforce with Google Contacts, let’s have a quick introduction to Google Contacts. Salesforce, a top-rated customer relationship management tool, can be easily integrated with many third-party tools to empower sales, close more deals, and enhance the overall customer experience. In today’s highly competitive business landscape, every organization wants to implement business process mapping onto a CRM such as Salesforce to boost team productivity and efficiency.īusinesses of all sizes can reap the benefits by integrating Salesforce with existing systems – both with on-premise and cloud solutions that can dramatically increase team productivity, encourage employee collaboration, and help convert turn leads into clients.