Contacts

Version: 1.0.1
crm/contacts
superface

Manage contacts in Customer Relation Management systems

Create Contact

Create single contact in CRM

E-mail
Phone
First name
Last name
Company
Country
Custom fieldsproperties
Identifier

Update Contact

Update single contact matched by id or email

Identifier
E-mail
Phone
First name
Last name
Company
Country
Custom fieldsproperties
Identifier

Search contact

Search contact by it's property value

Property
Operator
Value
Identifier
E-mail
Phone
First name
Last name
Company
Country
Custom fieldsproperties

1. Install

npx @superfaceai/cli install crm/contacts

2. Use in your code

const { SuperfaceClient } = require('@superfaceai/one-sdk');

const sdk = new SuperfaceClient();

async function run() {
  // Load the installed profile
  const profile = await sdk.getProfile('crm/contacts');

  // Use the profile
  const result = await profile
    .getUseCase('Create')
    .perform({
      email: 'johndoe@example.com',
      firstName: 'John',
      lastName: 'Doe',
      company: 'Superface',
      country: 'USA',
      customProperties: {
        myproperty: 'field value'
      }
    });

  return result.unwrap();
}

run();

3. Add providers