Welcome Guest! Log in
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

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…

Salesforce Demonstration Project

    The Stambia Salesforce template has a lot of options.

    We have made a project that shows examples of most of them, with some explanation and information.

    You can click on this link to download the project.

    Preparation

    The project is split in two parts, that can be performed separately.

    The first part requires a Salesforce Developer account. Here is an article explaining step by step how to create a Salesforce Developer free account and how to use it with Stambia Designer.

    The second part requires a Salesforce Account, and the creation of a custom object in the Salesforce Environment that is explained in this article.

     

    Configure Salesforce Database

    Once you have an account, you have to configure the Salesforce database that will be used for the demo in Stambia Designer.

    For that, you need to update the Salesforce metadata located in 01 - Metadata/Salesforce of the project.

    -> Set it to your own settings (Login, password, Security Token).

    Learn more about how to configure the Metadata

    Execution

    1-    Start your Runtime and connect it to the Designer.
    2-    Start demo Databases.
    3-    Execute the examples.

    The examples may contain notes that explain their purposes.

     

    Create a Salesforce Developer Account

      In this article, we will explain step by step how to create a Salesforce Developer free account and how to use it with Stambia Designer.

      If you already have an account, you can skip this article, you are ready to perform the demonstration project!

       

      Create your account

       Go to https://developer.salesforce.com/signup and fill the application form with your information.

       

      You will then receive an email with a link that will allow you to verify your account. You can then login to your account.

      Once logged in, you will need to Switch to Salesforce classic, as shown in the picture below.

      2017 07 13 16 25 29 Home Salesforce

      Next step is to generate a security token, since you will need it to connect to your account with Stambia Designer.

      For this, click on your username and then My Settings.

      img3

      On the Settings page, go to Personal, then Reset My Security Token. Finally click on the button.

      img4

      You are now finished creating your account! The login, security token and password will be used in Stambia.

      Next step is to configure the Metadata in Stambia.

       

      Set Up the Demonstration Environnement

        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.

        CreateCustomObject01

         

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

        CreateCustomObject02

         

        Enter Object information and Click 'save'

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

         

        CreateCustomObject03

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

         

        CreateCustomObject04

        Click 'Next'.

        CreateCustomObject05

        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 :

        CreateCustomObject06

         

        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.

         

        CreateCustomObject07

        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.

        CreateTab

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

        CreateTab2

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

        CreateTab3

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

        CreateTab4

         

        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>

         

        Articles

        Suggest a new Article!