Articles in this section
Category / Section

Working with Salesforce processor

6 mins read

Introduction

This document explains the steps required to get all SalesforceObject using GetAllSalesforceObjects processor.

List of processors required

Processor

Comments

GenerateFlowFile

Generates empty flowfile content.

GetAllSalesforceObjects

Gets all the available Salesforce objects.

UpdateAttribute

Updates output file name in flowfile attribute.

PutFile

Stores flowfile content in given output directory.

PublishDataSource

Publishes data source to the dashboard application.

 

Overview

In this sample, GenerateFlowFile generates empty flowfile. GetAllSalesforceObjects processor will get all Salesforce objects and update it in generated flowfile. UpdateAttribute processor updates the file name in flowfile attribute. Finally, PutFile processor stores the transformed content in given output directory with given specific name.

 

Step 1: Drag and drop the GenerateFlowFile processor to the workarea. Double click the processor and choose “SETTINGS” tab in configure dialog. Rename processor name as per your requirement in Name field.

Choose “SCHEDULING” in configure dialog. Change the “Run Schedule” field as per your need. For example: 1 day, 1 hour, 5 minutes, 30 seconds. In our sample, we used 1 day.

 

Step 2: Drag and drop the GetAllSalesforceObjects processor to the workarea. Double click the processor and choose the “PROPERTIES” tab in configure dialog. Add SalesforceAuthenticationService controller service as shown in following screenshot.

Then, make connection between GenerateFlowFile and GetAllSalesforceObjects processor with success relationship.

Note: If you want to ignore failure relationship, auto terminate the failure relationship in configuration popup as shown in the following screenshot.

Step 3: Drag and drop the UpdateAttribute processor to the workarea. Double click the processor and choose “PROPERTIES” tab in configure dialog. Using Add button add new attribute “filename”, enter the required filename with specific file format as its value. Then, make connection between GetAllSalesforceObjects and UpdateAttribute processor with success relationship.

 

 

Step 4: Add PutFile processor and configure the required property fields in configuration dialog. Make connection between UpdateAttribute and PutFile processor with success relationship.

 

Step 5: Once all the processors are configured, start the workflow.

Note: In this sample, the required properties which appears in bold under properties tab, you must fill those fields with necessary value. Other properties (not in bold) are considered optional.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied