Skip to main content
Skip table of contents

Sample: Inbound and Outbound Integration Settings


These sample integrations connect with the Nimble Fuse API to read data from and write data to Nimble AMS.


Inbound Integration Setting JSON Request

The inbound integration setting named CreateNewAccount executes to create two new accounts:

  • John Smith
  • Jane Smith
Show me the Code...
JAVA
{
  "Request": {
    "Name" : "CreateNewAccount",
    "InboundRecords" : [ {
      "Fields" : {
        "ExternalId" : "Account1",
        "LastName" : "Smith",
        "FirstName" : "John",
        "PrimaryContact" : "Account2"
      }
    },
    {
      "Fields" : {
        "ExternalId" : "Account2",
        "LastName" : "Smith",
        "FirstName" : "Jane"
      }
    }
    ],
    "AuthenticationKey" : "34CA1462B9465"
  }
}

If using Self Service, remove "Request:" { } from the JSON code. The code should then start with { "Name" : {

InboundIntegration SettingJSON Response

After executing the inbound integration setting named CreateNewAccount two accounts are successfully created:

  • John Smith
  • Jane Smith
Show me the Code...
JAVA
{
  Records: [0]
  RecordCount: 2
  Message: ""
 -InboundResults: [2]
    -0:   {
         Success: true
         SalesforceId: "0015000001AaqKHAAZ"
        -Record: {
          -Fields: {
              PrimaryContact: "Account2"
              FirstName: "John"
              LastName: "Smith"
              ExternalId: "Account1"
           }
         }
         ErrorMessages: [0]
     }
    -1:   {
         Success: true
         SalesforceId: "0015000001AaqKCAAZ"
        -Record: {
          -Fields: {
              FirstName: "Jane"
              LastName: "Smith"
              ExternalId: "Account2"
           }
         }
         ErrorMessages: [0]
     }
} 

Outbound Integration Setting JSON Request

To check if an account within Nimble AMS is setup with a specific email address, the following JSON object can be used:

Show me the Code...
JAVA
{
    "Request":{
         "Name": "CheckEmailExists",
         "AuthenticationKey": "CCCE9BBC65DF1",
         "Parameters":{ 
               "email_param": "nikki.nimble@nimbleuser.com"
         }
    }
}

If using Self Service, remove "Request:" { } from the JSON code. The code should then start with { "Name" : {

OutboundIntegration SettingJSON Response

After executing the CheckEmailExists outbound integration setting, the JSON results show there is one account setup with the nikki.nimble@nimbleuser.com email address.

Show me the Code...
JAVA
{
 -Records: [1]
     -0: {
        -attributes: {
            type: "Account"
            url: "/services/data/v33.0/sobjects/0015000001AaqKCAAZ"
         }
         Id: "0015000001AaqKCAAZ"
     }
  RecordCount: 1
  Message: ""
  InboundResults: [0]
} 




JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.