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>

  • https://<instance>.salesforce.com/apex/dealer__inventoryfeedmanager

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

  • https://<instance>.my.salesforce.com/apex/dealer__inventoryfeedmanager

 

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

There are two feeds configured using this interface.: an inventory feed, and vehicle detail feed. The inventory feed includes fields from the dealer__Vehicle_Inventory__c object and any related dealer__Inventory_Images__c records. Hand created or featured dealer__Equipment__c records are also included in the inventory feed. The vehicle detail feed includes everything in the inventory feed as well as dealer__Vehicle_Equipment__c records which are created with the VIN decoder.

Inventory Feed

  • dealer__Vehicle_Inventory__c
  • dealer__Inventory_Images__c
  • dealer__Equipment__c

Vehicle Detail Feed

  • Everything in the Inventory feed
  • dealer__Vehicle_Equipment__c

 

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

Select optional fields

 

Step 4) 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.

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

Change field labels
 

Step 5) Display Results

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

 

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.

 

Step 1) Create New Salesforce Site

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

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

Step 2) 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 3) 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"
    } ],
    "equipment" : [ {
      "Name" : "Sunroof",
      "dealer__Featured__c" : "false",
      "dealer__Publish__c" : "true"
    }, {
      "Name" : "Custom Wheels 22's",
      "dealer__Featured__c" : "false",
      "dealer__Publish__c" : "true"
    } ]
  }, {
    "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"
    } ]
  } ]
}

 

Step 3a) Preview the Vehicle Detail Feed

To view the vehicle detail feed you must indicate which vehicle's feed you would like to see. You can do this by adding the Stock #, VIN, or Salesforce Id to the inventory feed URL in the following manner.

https://<instance>.my.salesforce.com/invfeed?stock=5
https://<instance>.my.salesforce.com/invfeed?VIN=2C4RC1BGXJR339273
https://<instance>.my.salesforce.com/invfeed?id=a1bE0000000EdkiIA

The vehicle detail feed below includes dealer__Vehicle_Equipment__c records (truncated in the middle) that are created by the VIN decoding process in DealerTeam.


{
  "vehicles" : [ {
    "Id" : "a2c0q000000GU75GGA",
    "Name" : "(H22475) 2018 Chrysler Pacifica",
    "dealer__Body_Style__c" : "Passenger",
    "dealer__Body_Type__c" : "Mini-Van",
    "dealer__Company_Number__c" : "S2",
    "dealer__Days_in_Stock__c" : "74",
    "dealer__Doors__c" : "4",
    "dealer__Drive_Type__c" : "FWD",
    "dealer__In_Stock__c" : "true",
    "dealer__Inventory_Date__c" : "2018-06-11 00:00:00",
    "dealer__Make__c" : "Chrysler",
    "dealer__Model__c" : "Pacifica",
    "dealer__Publish_Vehicle_Info_To_Web__c" : "false",
    "dealer__Service_Vehicle__c" : "a2H0q000000CraMEEQ",
    "dealer__Stock_Number__c" : "H22475",
    "dealer__Trim_Level__c" : "Touring L",
    "dealer__VIN__c" : "2C4RC1BGXJR339273",
    "dealer__Year__c" : "2018",
    "dtmob__Total_Mobility_Vehicle_Price__c" : "64999.00",
    "Publish_Price_on_Web__c" : "true",
    "images" : [ ],
    "equipment" : [ {
      "Name" : "Sunroof",
      "dealer__Featured__c" : "false",
      "dealer__Publish__c" : "true"
    }, {
      "Name" : "Custom Wheels 22's",
      "dealer__Featured__c" : "false",
      "dealer__Publish__c" : "true"
    } ],
    "vehicle_equipment" : [ {
      "Name" : "VEQ-100622",
      "dealer__Category__c" : "Optins",
      "dealer__Description__c" : "Added Sunroof",
      "dealer__Equipment_Type__c" : "Optional",
      "dealer__Name__c" : "SunRoof"
    }, {
      "Name" : "VEQ-100420",
      "dealer__Category__c" : "Air Conditioning",
      "dealer__Name__c" : "Air filtration"
    }, {
      "Name" : "VEQ-100421",
      "dealer__Category__c" : "Air Conditioning",
      "dealer__Description__c" : "automatic climate control",
      "dealer__Name__c" : "Front air conditioning"
    }, {
      "Name" : "VEQ-100422",
      "dealer__Category__c" : "Air Conditioning",
      "dealer__Description__c" : "dual",
      "dealer__Name__c" : "Front air conditioning zones"
    }, {
      "Name" : "VEQ-100423",
      "dealer__Category__c" : "Air Conditioning",
      "dealer__Description__c" : "automatic climate control",
      "dealer__Name__c" : "Rear air conditioning"
    }, {
      "Name" : "VEQ-100424",
      "dealer__Category__c" : "Air Conditioning",
      "dealer__Description__c" : "single",
      "dealer__Name__c" : "Rear air conditioning zones"
    }, {
      "Name" : "VEQ-100425",
      "dealer__Category__c" : "Airbags",
      "dealer__Description__c" : "occupant sensing passenger",
      "dealer__Name__c" : "Airbag deactivation"
    }, {
      "Name" : "VEQ-100426",
      "dealer__Category__c" : "Airbags",
      "dealer__Description__c" : "dual",
      "dealer__Name__c" : "Front airbags"
    }, {
      "Name" : "VEQ-100427",
      "dealer__Category__c" : "Airbags",
      "dealer__Description__c" : "dual front",
      "dealer__Name__c" : "Knee airbags"
    }, {
      "Name" : "VEQ-100428",
      "dealer__Category__c" : "Airbags",
      "dealer__Description__c" : "front",
      "dealer__Name__c" : "Side airbags"
    }, {
      "Name" : "VEQ-100429",
      "dealer__Category__c" : "Airbags",
      "dealer__Description__c" : "front",
      "dealer__Name__c" : "Side curtain airbags"
    }, {
      "Name" : "VEQ-100430",
      "dealer__Category__c" : "Airbags",
      "dealer__Name__c" : "Side-curtain airbag rollover sensor"
    }, {
      "Name" : "VEQ-100431",
      "dealer__Category__c" : "Audio System",
      "dealer__Description__c" : "diversity",
      "dealer__Name__c" : "Antenna type"
    }, {
      "Name" : "VEQ-100432",
      "dealer__Category__c" : "Audio System",
      "dealer__Description__c" : "Bluetooth",
      "dealer__Name__c" : "Auxiliary audio input"
    }, {
      "Name" : "VEQ-100433",
      "dealer__Category__c" : "Audio System",
      "dealer__Description__c" : "AM/FM",
      "dealer__Name__c" : "Radio"
    }, {
      "Name" : "VEQ-100434",
      "dealer__Category__c" : "Audio System",
      "dealer__Name__c" : "Radio data system"
    }, {
      "Name" : "VEQ-100435",
      "dealer__Category__c" : "Audio System",
      "dealer__Description__c" : "SiriusXM",
      "dealer__Name__c" : "Satellite radio"
    }, {
      "Name" : "VEQ-100436",
      "dealer__Category__c" : "Audio System",
      "dealer__Name__c" : "Speed sensitive volume control"
    }, {
      "Name" : "VEQ-100437",
      "dealer__Category__c" : "Audio System",
      "dealer__Description__c" : "6",
      "dealer__Name__c" : "Total speakers"
    }, {
      "Name" : "VEQ-100438",
      "dealer__Category__c" : "Brakes",
      "dealer__Description__c" : "4-wheel",
      "dealer__Name__c" : "ABS"
    }, 
    .
    .
    .
     {
      "Name" : "VEQ-100615",
      "dealer__Category__c" : "Seats",
      "dealer__Description__c" : "Includes power front passenger auto advance n' return and lumbar adjustment, and second row USB charge port.",
      "dealer__Name__c" : "Power 8-Way Passenger Seat"
    }, {
      "Name" : "VEQ-100616",
      "dealer__Category__c" : "Telematics",
      "dealer__Name__c" : "MOPAR Vehicle Tracking System"
    }, {
      "Name" : "VEQ-100617",
      "dealer__Category__c" : "Tires and Rims",
      "dealer__Description__c" : "Includes 20 x 7.5-inch aluminum \"black noise\" wheels with 245/50R20 Falken BSW all season tires with locking lug nuts.",
      "dealer__Name__c" : "20 x 7.5 Inch Aluminum Black Noise Wheels"
    }, {
      "Name" : "VEQ-100618",
      "dealer__Category__c" : "Tires and Rims",
      "dealer__Description__c" : "Includes 17\" inflatable spare tire.",
      "dealer__Name__c" : "Inflatable Spare Tire Kit"
    }, {
      "Name" : "VEQ-100619",
      "dealer__Category__c" : "Tires and Rims",
      "dealer__Description__c" : "Includes 18 x 7.5-inch painted aluminum wheels with P235/60R18 BSW all season tires.",
      "dealer__Name__c" : "Tire and Wheel Group"
    }, {
      "Name" : "VEQ-100620",
      "dealer__Category__c" : "Towing and Hauling",
      "dealer__Description__c" : "Includes trailer-sway control, heavy-duty radiator, wiring harness, 2-in. Class II receiver hitch (3,600-lb. tow rating), and 220 amp alternator.",
      "dealer__Name__c" : "Trailer Tow Group"
    }, {
      "Name" : "VEQ-100621",
      "dealer__Category__c" : "Standard",
      "dealer__Description__c" : "Factory installed",
      "dealer__Equipment_Type__c" : "Standard",
      "dealer__Name__c" : "Sunroof"
    } ]
  } ]
}

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!