package
0.3.0
Repository: https://github.com/grokify/gameofthrones.git
Documentation: pkg.go.dev

# README

Create Game of Thrones Data in Salesforce

This code creates Saleforce demo data using Game of Thrones data. It augments the data with ficticious phone numbers, email addresses and websites.

Instructions

Create your app

Create a Connected App in Salesforce and add your credentials to your .env file. The location of this can be specified in the ENV_PATH environment variable.

SALESFORCE_CLIENT_ID=myClientId
SALESFORCE_CLIENT_SECRET=myClientSecret
SALESFORCE_USERNAME=myUsername
SALESFORCE_PASSWORD=myPassword
SALESFORCE_SECURITY_KEY=mySecurityKey
  • SALESFORCE_CLIENT_ID and SALESFORCE_CLIENT_SECRET are created for you when you create a "Connected App" under Setup > Apps > App Manager with OAuth Settings
  • SALESFORCE_USERNAME and SALESFORCE_PASSWORD are the same credentials as you use to login to https://login.salesforce.com
  • SALESFORCE_SECURITY_KEY is configured under your user Settings > My Personal Information > Reset My Security Token

Run the code

$ go get github.com/grokify/gameofthrones
$ cd $GOPATH/src/github/grokify/gameofthrones/examples/salesforce
$ go run create.go -action create_accounts
$ go run create.go -action create_contacts
$ go run create.go -action create_cases

The following are valid actions:

  • create_accounts
  • delete_accounts
  • create_contacts
  • delete_contacts
  • create_cases

The data should be created in this order:

  1. Accounts
  2. Contacts
  3. Cases

Screenshots

Accounts

Account

Contacts

Contact

Cases

Case

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author