Salesforce Connector for Talend Studio How to Get Beta Report

Introduction

In this article we will delve deeper into Salesforce and Talend Studio integration, and will learn how to get beta report. We are continuing from where we left off. By this time, you must have installed ODBC PowerPack, created ODBC Data Source, and configured authentication settings in your Salesforce account .

So, let's not waste time and begin.

Use Query Builder to generate SQL query

  1. The first thing you have to do is open Query Builder:

    ZappySys API Driver - Salesforce
    Amazon Ads Connector can be used to get Amazon advertisements using Amazon Advertisements API, download various advertisement-related reports.
    SalesforceDSN
    Open Query Builder in API ODBC Driver to read and write data to REST API
  2. Then simply select the Get Beta Report endpoint (action).

  3. Continue by configuring the Required parameters. You can also set optional parameters too.

  4. Move on by hitting Preview Data button to preview the results.

  5. If you see the results you need, simply copy the generated query:

    Get Beta Report
    Optional Parameters
    Report Name Test Name
    Report Type spCampaigns
    Time Unit SUMMARY
    Group By campaign
    Group By targeting
    Group By searchTerm
    Group By advertiser
    Group By asin
    Report Start Date (yyyy-MM-dd) Maximum date range: 31 days
    Report End Date (yyyy-MM-dd) Maximum date range: 31 days
    Report Start Date (yyyy-MM-dd) Maximum date range: 731 days
    Report End Date (yyyy-MM-dd) Maximum date range: 731 days
    Metrics clicks
    Metrics clicks
    Metrics clicks
    Metrics clicks
    Metrics clicks
    Metrics clicks
    SELECT * FROM get_beta_report
    WITH
    (
        "ReportName" = 'Test Name',
        "ReportType" = 'spCampaigns',
        "StartDatePurchasedProductReportTypeGroupByAsin" = 'today-30d',
        "EndDatePurchasedProductReportTypeGroupByAsin" = 'today',
        "StartDatePurchasedProductReportTypeGroupByPurchasedAsin" = 'today-365d',
        "EndDatePurchasedProductReportTypeGroupByPurchasedAsin" = 'today'
    )
    Query Builder
  6. That's it! You can use this query in Talend Studio.

Let's not stop here and explore SQL query examples, including how to use them in Stored Procedures and Views (virtual tables) in the next steps.

SQL query examples

Use these SQL queries in your Talend Studio data source:

How to Get beta report

SELECT * FROM get_beta_report
WITH
(
    "ReportName" = 'Test Name',
    "ReportType" = 'spCampaigns',
    "StartDatePurchasedProductReportTypeGroupByAsin" = 'today-30d',
    "EndDatePurchasedProductReportTypeGroupByAsin" = 'today',
    "StartDatePurchasedProductReportTypeGroupByPurchasedAsin" = 'today-365d',
    "EndDatePurchasedProductReportTypeGroupByPurchasedAsin" = 'today'
)

Get Beta Report in Talend Studio

  1. Once we have a connection to ZappySys Data Gateway created, we can proceed by creating a job:

    Create a job in Talend Studio
  2. Simply drag and drop ZappySys Data Gateway connection onto the job:

    Creating an input based on ZappySys Data Gateway connection
  3. Then create an input based on ZappySys Data Gateway connection:

    Creating an input based on ZappySys Data Gateway connection
  4. Continue by configuring a SQL query and click Guess schema button:

    Configuring a SQL query in Talend Studio
  5. Finish by configuring the schema, for example:

    Configuring a schema in Talend Studio

More actions supported by Salesforce Connector

Learn how to perform other actions directly in Talend Studio with these how-to guides:

More integrations

All
Data Integration
Database
BI & Reporting
Productivity
Programming Languages
Automation & Scripting
ODBC applications