Showing posts with label CRM. Show all posts
Showing posts with label CRM. Show all posts

Thursday, 6 May 2021

Integration of Salesforce Marketing Cloud with Open Source CRM System using Rest API

INTRODUCTION

While working on one of the requirements for a transportation sector project for a client based out of Melbourne, Australia there was a requirement to import existing records\leads into the Salesforce Marketing Cloud from third party open source CRM system.

We also needed to provide specifications to add lead into SFMC on the fly from an external CRM system by doing necessary configuration. Given specifications are to be used by other CRM team to insert record from CRM to SFMC on the fly. Below are the detailed steps we need to follow:

APPROACH

1) For importing existing data into Salesforce Marketing Cloud, we have created Data Extension and fields into SFMC and used CSV Import.

2) For integration with third party system, Marketing Cloud provides two APIs that uses OAuth 2 authentication mechanism:
  • The REST API gives you more access to Marketing Cloud features.
  • The SOAP API gives you complete access to most email features.

In this scenario, we have used REST API to integrate with external system. 

Marketing Cloud administrator user is required to perform the actions needed for configuration. Following steps are executed in SFMC.

  • Log in as Marketing Cloud Administrator user in SFMC.
  • Go to Setup -> Apps ->Installed Packages.
  • Click New to create a new package.
  • In the New Package Details window, enter the Name and Description of the package.
  • Click on the Save button.
  • Click on Add Component and will open one pop-up window for setup.
  • In pop-up, select API Integration and click Next. 

  • Select Server-to-Serveras Integration type then click Next.
  • Select required permission for API and click the Save button. Permission can be updated in future, if required.
  • Copy Client Id, Client secret, Authentication URL, and REST URL which will be used for API integration in future steps.

  • Getting Access Token
    • Example Request:
      • Authentication endpoint can be retrieved from the above step.
      • Endpointhttps://YOUR_SUBDOMAIN.auth.marketingcloudapis.com/v2/token
      • Method: POST
      • Content-Type: application/json
    • Request Body:
  • {
    "grant_type": "client_credentials",
    "client_id": "7a9j47upktedde30uedl822p",
    "client_secret": "195527892567524157"
    • Example Response : HTTP/1.1 200 OK
    • Response Body:
  • {
    "access_token":"eyJhbLciOiJIPzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjIifQ.eyJhY2Nlc3NfdG9rZW4iOiJhYmJUQTlpSHZqRjkyd3Jkb0xWZEFCaloiLCJjbGllbnRfaWQiOiI3ZTRmYW1xaWUzcWtzdzlhNDRrcmxvZDgiLCJlaWQiOjEwNzU3Njc2LCJzdGFja19rZXkiOiJRQTFTMSJ9.wSFfEdeNrkoiU_tnmJ2ihm8iUqnJKlZoI3GlavTGBhs.hU4EsiC1e9txh_TCt90YlI2l7xZZ5E6_oa0xku3Jj9CCk1B72M4bhO3kUIyhwfVuB0MFbL0y9KD_RRFzg-nuqPgjPyONnby-iWopdZPBHd-3woupxCMST5-vfJO9qAED9qiUfYLS4WmHRuJTCX4NPScyu8BdROTVEe-D3iAoAeFoJX_rLZ9d5eEhIn1AvkYgoj9siuxAprHEvmySTgNIXkQA6uT_IQ-H1dbfOyJmlFKpYzvhvHb0KH7NJ24zy5bd2MQ5",
    "expires_in":1080,
    "token_type":"Bearer",
    "rest_instance_url":"mc563885gzs27c5t9-3k636tzgm.rest.marketingcloudapis.com",
    "soap_instance_url":"mc563885gzs27c5t9-63k636tzgm.soap.marketingcloudapis.com",
    "scope": "email_read email_write email_send"
    
    }

  • Upsert records in Data Extension: 
    • In a single synchronous call, the API upserts multiple data extension rows. The maximum size of a payload is 5 megabytes. We can post a maximum of 50 fields and 50 records at a time as a best practice.
    • Example Request: 
      • Host:https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com/hub/v1/dataeventsasync/key:YOUR_KEY/rowset
      • Method: POST
      • Content-Type: application/json
      • Authorization: Bearer YOUR_ACCESS_TOKEN
    • Request Body 

  • [ { "keys":{ "Email": "someone@example.com"}, "values":{ "LastLogin": "2013-05-23T14:32:00Z", "IsActive": true, "FirstName": "John", "FollowerCount": 2, "LastName": "Smith" } }, { "keys": {"Email": "someone2@example.com"}, "values":{ "LastLogin": "2013-05-23T14:32:00Z", "IsActive": true, "FirstName": "Jane", "FollowerCount": 2, "LastName": "Smith" } } ]
    • Example Response : HTTP/1.1 200 OK
    • Response Body:
  • [
         {
             "keys": {
                     "Email": "someone@example.com"
                     },
             "values": {
                     "LastLogin": "2013-05-23T14:32:00Z",
                     "IsActive": true,
                     "FirstName": "John",
                     "FollowerCount": 2,
                     "LastName": "Smith"
                     }
         },
         {
             "keys": {
                     "Email": "someone2@example.com"
                     },
             "values": {
                     "LastLogin": "2013-05-23T14:32:00Z",
                     "IsActive": true,
                     "FirstName": "Jane",
                     "FollowerCount": 2,
                     "LastName": "Smith"
                     }
         }
     
  • API returns a 400 response for an an invalid request with details on the error.

SUMMARY
Using Salesforce Marketing cloud APIs, third party open source CRM can be integrated with SFMC. APIs and its sample responses are used to add records on the fly into SFMC. For further details you can refer to this Link!

If you have any questions you can reach out our Salesforce Consulting team here.

Friday, 18 December 2020

Lacking Customer Interaction? CRM can rescue!

        Running a business can be tricky in today’s hyper competitive environmentWhile the new customer acquisition can take your high time, existing customers don’t feel the need to stay with a company that doesn't concern them. It’s important for businesses to have constructive and pro-active customer service because good customer service directly affects customer to come back and that implies to increase in business revenue.  


    Providing good customer service includes delivering what you have promised. But providing excellent customer service requires putting yourself in customer’s shoes, to understand their perspective and understand how they interact with you at every step. 


 


    Seems like difficult task to respond to consumers, keep records and tracks, faster engagement, deal closure? 

All in one solution for your troublesSALESFORCE SERVICE CLOUD 


    Service cloud is CRM platform for customer service and support. It enables users to automate service processes, streamline workflows, finding key articles, topics and experts to support customer service agents. The main purpose is to encourage one-to-one marketing relationships with every customer across multiple channels and devices. 


    Its uniqueness lies in providing faster service compared to traditional methods, giving individual attention to each customer needs and taking a pro-active approach to customer issues. That ultimately turns into better customer experience which create good impact on sales. 


Benefits for Customers: - 

  • 35% increase in customer satisfaction. 

Benefits for Companies: - 

  • 22% decrease in support cost. 

  • 26% increase in customer retention. 

  • 28% increase in agent productivity. 

  • 31% faster case resolution. 


Key Business goals achieved by using the service cloud: 

1)Personalized Service: 

Give each customer a better service experience based on their past record, complaints and history of purchase. 


2) Available 24/7: 

Make the service all time available for all consumers. 


3) Multiple Channel support: 

Mobile, PC, Web, Chat- meet the customers on their preferred channels. 


4) Rapid Support: 

Managing various services from the one platform helps delivering faster execution of all the query and gives quick results. 

 

Key Features of Service Cloud:  

1) The Lighting Console: 

Prioritizing the task on hand requires a unified platform for managing all cases assigned to agent. This results into personalized experience for each customer in each case. 


2) The Knowledge Base: 

Customer interactions and resolution are captured and organized in knowledge base. Agents can create and access resources within the company’s knowledge base. 


3) Social Customer Service: 

With the help of this feature customer can visit separate web pages for interactions on various social media platforms. Linked to the omni routing, keywords and hashtags can help work to be delivered to the appropriate agent.  


4) Live Agent 

A real time chat functionality, tool that allows customer to interact with agents via websites. It allows agents to make multiple conversations at once. 


5)Service Cloud Communities: 

Communities are all about creating the engagement layer on the top of Salesforce Platform. It allows customer to help themselves by helping each other. From any device, anywhere, anytime- agents, customers, channel partners can find their answers quickly. 


6) Omni-Channel Routing: 

It is a feature that allows you to route service work intelligently. Supervisors can access a complete view of routing and agent activity. Cases and leads are automatically directed to specific employee based on factors such as employee skill-set and availability. 


7)Service Analytics: 

One more tool to give employees easy access to reporting and key CRM data such as chatbot performance, case history and volume, agent activity and productivity. 


8)Telephony integration: 

Service calls to and from customers can be managed with customer information on a hand. Integrate with the most popular CTI systems. 


9)Case Management: 

Agents can use service console shuffle multiple cases at once across multiple channels. Case management is accessible via mobile and desktop both. 


10) Automation with Macros: 

They automate common repetitive task, reducing multiple steps down to a 1-click. It will save customer and service delivery time. 


😐Are your customers easily distracted? 

😐Have your customers' expectations increased? 

😐Are your customers listening to new models of authority?

😐Customers establishing new communities? 


If you are facing any of the above issue you must go for Salesforce Service Cloud. 

Facing difficulty in implementation for Service cloud? Binary Republik-SFDC is there with you anytime to help you out. 

 

If you have any questions you can reach out our Salesforce Consulting team here.