Welcome Guest! Log in
The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

This article will demonstrate how to setup your Salesforce environnement in order to perform the second part of the demonstration project and learn more about Salesforce.


Create a custom object in Salesforce

Before we start manipulating objects, here is a reminder of Salesforce's difference between standard objects and custom objects:

Standard Objects—These are objects included with Salesforce, by default, for example the objects used to store data in standard tabs such as accounts, contacts, or opportunities.

Custom Objects—These are new objects you create to store information unique to your organization. Custom objects extend the functionality that standard objects provide.

We are going to create a custom object. First, log into your salesforce account and go to the setup page.



Click on 'New Custom Object'. We are going to create the 't_customer' custom object, for the purpose of the demonstration project.



Enter Object information and Click 'save'

Now the object is empty, we will create custom fields. (standards objects can have custom fields too).



Click on 'New' to create a custom field. The first field to create is 'Cus_id' which is a number.



Click 'Next'.


For this field, we select the External ID attribute. An external ID is a custom field that has the External ID attribute, which means that it contains unique record identifiers from a system outside of Salesforce. It is also known as a primary key.
Go through the two next steps by just clicking on next, as we do not need to change anything. Finaly, save the field.
Create the other fields, and you shoud have something like this :



Note : The cus_id field is indexed. This is due to the external id attribute.

We are done creating our custom object !

You can now reverse its structure in Stambia.

Go back to your Salesforce metadata, and perform a reverse on the Salesforce server.

The object t_customer__c should appear.



The object can now be used in Stambia !


Create tabs for your custom objects


In the salesforce environnement, a tab allows you to read data from your custom objects and more.
To create a tab, go into your setup page.


Select your custom object in the list and a tab style (anyone), and click next.


Go through the following steps by just clicking next and save your tab.
You should now see your tab in the menu bar :


From this tab, you can either consult your data (click 'Go!' ) or enter new records by clicking 'New'.



More about Stambia's Integration template Rdbms to Salesforce

The parameter "Error Acceptance Number" can be usefull when your Salesforce object has a custom field with a validation rule. You can change its value to allow a number of records to go through the rule. The value -1 means the rule will be ignored.

Tip : Salesforce records have a unique ID with which you can access its information through the following url : https://yourInstance.salesforce.com/<ID>



Suggest a new Article!