Giter Site home page Giter Site logo

salesforce_thinka_integrator's Introduction

SalesforceシンカCTI連携

準備

  1. カスタム表示ラベルを2つ用意
名前
THINKA_ID シンカCTIの顧客ID
THINKA_SECRET シンカCTIのSecretLetter
  1. 下記キャプチャを参考に「リモートサイトの設定」

リモートサイトの設定

  1. ソースを環境にアップロード

使い方

連携クラスのインスタンスを生成して

THINKA_Integrator integrator = new THINKA_Integrator();

使いたいメソッドを呼び出す。

integrator.userSearch('山田', 0, 100);

結果はすべて THINKA_IntegrateDTO で返される。

public with sharing class THINKA_IntegrateDTO {
    public Boolean isSuccess = true;
    public String msg;
    public List<String> data;
}

顧客情報登録などの自由項目のJSON作成

sObject record; // 処理対象Salesforceレコード
List<String> fields; // 処理対象の項目名のリスト
THINKA_JSONGenerator gen = new THINKA_JSONGenerator().setRecord(record)).setFields(fields);
String infoJSON = gen.generateJSON();

注意事項

  • データの更新条件はシンカCTI WebAPIに依拠する。
  • Apexトリガを使用した処理に組み込むことはできない。
  • 今のところ画像操作のAPIには未対応。

サンプルアプリケーション(Salesforce->シンカCTI連携)

概要

取引先責任者詳細ページにアクションを設置し、そのアクション実行時に開いている取引先責任者のデータをシンカCTIへ連携する

項目マッピング

Salesforce項目Api名 シンカCTI項目名
Phone tel
LastName name
マッピングなし name_kana
MailingAddress addr
マッピングなし sex
Birthdate d_o_b
Description status

すべて取引先責任者オブジェクトとのマッピング

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.