Skip to main content
DealerTeam

Customized Inventory Feed - Using Sites

Create a public feed of your in-stock inventory

This how-to will walk you through creating a public feed of your inventory.   The resulting feed is output in JSON for easy consumption by third party applications. Administrator access is required to complete these steps.

 

Step 1) Open the Inventory Feed Manager Setup Page

Copy and paste the correct URL link provided below. The instance your Organization uses is indicated in your Web browser's address bar, as shown in the screenshots:     

1. Standard URL,  salesforce instance as indicated in the URL ​ replace <instance> with your instance, <na16>

2. My.Domain URL,  My.Domain example replace <instance> with your instance, <dealerteam> 

 

This will grant access to the Setup page Inventory Feed Manager. 

Inventory Feed Manager - No fields loaded

 

Step 2) Load the Feed Options

Click the load feed options button to load the feed options which consist of standard, managed, and any custom fields added to the Vehicle Inventory and Inventory Images objects.

Load feed options

 

Step 3) Select Fields to Include

Select any fields to include in the feed.  Any fields selected will display in the generated JSON feed.

Select optional fields

Step 3a) Optional - Rename Output Field_names

The field_name output defaults to the API name. To change it for readability or to match an existing integration, simply edit the field name in the output field column.

helpNote_icon.gif  Field_names should only include alpha characters. Do not include spaces, numbers, or special characters. See examples below

Change field labels
 

Step 4) Display Results

Preview the results by clicking the Display Feed button to ensure the feed is configured to the dealership requirements.
Display Feed

 

Step 5) Configure Salesforce Sites

Setting up the site to make the web feed public requires enabling a public site.  Navigate to Setup and in the Quick Find type "Sites". From the side bar, click Sites to load the page.

Click the New button. If no Site is available there will be no New button. Learn how to Create a new Force.com Site to continue. 

Sites New button

Select Guest for the Type of New Site and click Continue.

Site choice dialog

helpNote_icon.gif For more information on how to set up sites visit the following link http://help.salesforce.com/HTViewHel...language=en_US

 

Step 6) Activate the Feed

Allow access to the feed by setting the Active Site Home Page to InvWebFeed. This page is responsible for generating the feed.

Ensure the Active checkbox is marked as true.

Setup the site

 

Step 7) Preview the Feed

To open the site details, click on the Site Label InventoryFeed.  

click the site label InventoryFeed to open the Site

To preview the output of the site and ensure correct setup, click View to the left of the site.

The URL of the feed is available under the Domain Name.

Site URL preview

When previewing the feed content should resemble the following JSON.

{
  "vehicles" : [ {
    "Id" : "a1bE0000000EdNuIAK",
    "Name" : "(5) 2016 Dodge Challenger",
    "CreatedDate" : "2016-03-30 17:30:55",
    "dealer__Make__c" : "Dodge",
    "dealer__Model__c" : "Challenger",
    "StatusCode" : "Photo",
    "StockNumber" : "5",
    "RetailSalePrice" : "8500.00",
    "dealer__Transmission_Type__c" : "6-Speed Manual",
    "dealer__Trim_Level__c" : "R/T",
    "dealer__Year__c" : "2016",
    "images" : [ {
      "dealer__Height__c" : "114",
      "dealer__Image_Name__c" : "b9bb6cc9-8526-4956-9aa7-eaf44b56cb3d.png",
      "dealer__Image_URL__c" : "https://s3.amazonaws.com/vehicle-images/b9bb6cc9-8526-4956-9aa7-eaf44b56cb3d.png",
      "dealer__MIME_Type__c" : "image/png",
      "dealer__Publish__c" : "true",
      "dealer__Thumbnail_URL__c" : "https://s3.amazonaws.com/vehicle-images/b9bb6cc9-8526-4956-9aa7-eaf44b56cb3d_thumb.png",
      "dealer__Thumbnail__c" : "false",
      "dealer__Width__c" : "200"
    }, {
      "dealer__Height__c" : "111",
      "dealer__Image_Name__c" : "7fc7b837-943c-4551-8700-3e31119a3be1.png",
      "dealer__Image_URL__c" : "https://s3.amazonaws.com/vehicle-images/7fc7b837-943c-4551-8700-3e31119a3be1.png",
      "dealer__MIME_Type__c" : "image/png",
      "dealer__Publish__c" : "true",
      "dealer__Thumbnail_URL__c" : "https://s3.amazonaws.com/vehicle-images/7fc7b837-943c-4551-8700-3e31119a3be1_thumb.png",
      "dealer__Thumbnail__c" : "false",
      "dealer__Width__c" : "200"
    }, {
      "dealer__Height__c" : "109",
      "dealer__Image_Name__c" : "37d7f102-9d56-4aaa-8099-37af80dcb292.png",
      "dealer__Image_URL__c" : "https://s3.amazonaws.com/vehicle-images/37d7f102-9d56-4aaa-8099-37af80dcb292.png",
      "dealer__MIME_Type__c" : "image/png",
      "dealer__Publish__c" : "true",
      "dealer__Thumbnail_URL__c" : "https://s3.amazonaws.com/vehicle-images/37d7f102-9d56-4aaa-8099-37af80dcb292_thumb.png",
      "dealer__Thumbnail__c" : "false",
      "dealer__Width__c" : "200"
    } ]
  }, {
    "Id" : "a1bE0000000EdkiIAC",
    "Name" : "(6) 2016 Ford Edge",
    "CreatedDate" : "2016-03-30 22:20:18",
    "dealer__Make__c" : "Ford",
    "dealer__Model__c" : "Edge",
    "StatusCode" : "Photo",
    "StockNumber" : "6",
    "RetailSalePrice" : "8500.00",
    "dealer__Transmission_Type__c" : "6-Speed Shiftable Automatic",
    "dealer__Trim_Level__c" : "SEL",
    "dealer__Year__c" : "2016",
    "images" : [ {
      "dealer__Height__c" : "110",
      "dealer__Image_Name__c" : "f76b4224-ce54-4c04-8e85-221845368fbc.png",
      "dealer__Image_URL__c" : "https://s3.amazonaws.com/vehicle-images/f76b4224-ce54-4c04-8e85-221845368fbc.png",
      "dealer__MIME_Type__c" : "image/png",
      "dealer__Publish__c" : "true",
      "dealer__Thumbnail_URL__c" : "https://s3.amazonaws.com/vehicle-images/f76b4224-ce54-4c04-8e85-221845368fbc_thumb.png",
      "dealer__Thumbnail__c" : "false",
      "dealer__Width__c" : "200"
    }, {
      "dealer__Height__c" : "112",
      "dealer__Image_Name__c" : "5078cbe3-527e-430d-9cd5-78327c0c9269.png",
      "dealer__Image_URL__c" : "https://s3.amazonaws.com/vehicle-images/5078cbe3-527e-430d-9cd5-78327c0c9269.png",
      "dealer__MIME_Type__c" : "image/png",
      "dealer__Publish__c" : "true",
      "dealer__Thumbnail_URL__c" : "https://s3.amazonaws.com/vehicle-images/5078cbe3-527e-430d-9cd5-78327c0c9269_thumb.png",
      "dealer__Thumbnail__c" : "false",
      "dealer__Width__c" : "200"
    }, {
      "dealer__Height__c" : "113",
      "dealer__Image_Name__c" : "86a349dd-af53-40b6-9218-fb306a3a4ee4.png",
      "dealer__Image_URL__c" : "https://s3.amazonaws.com/vehicle-images/86a349dd-af53-40b6-9218-fb306a3a4ee4.png",
      "dealer__MIME_Type__c" : "image/png",
      "dealer__Publish__c" : "true",
      "dealer__Thumbnail_URL__c" : "https://s3.amazonaws.com/vehicle-images/86a349dd-af53-40b6-9218-fb306a3a4ee4_thumb.png",
      "dealer__Thumbnail__c" : "false",
      "dealer__Width__c" : "200"
    } ]
  } ]
}

 

That is it!  The site should now be complete and active.  Some things to consider; DNS propagation can take time on newly registered domains, and do not forgot to make the site active by selecting the Active checkbox!

Happy Feed-ing!