This lesson will cover the following topics:

01 Getting Started

This tutorial covers how to push data from your power table to Salesforce, including:
  • Updating all table values.
  • Updating selected records on the table.
  • Pushing selected table values to a new Salesforce object.

02 Updating All Table Values

For this example, the table configured consists of the account names and the SLA. All SLA values will be updated with the click of a button.
table example

First, create a Salesforce push.
1. Navigate to the Project Settings Menu and click the Salesforce tab. The Salesforce Integration screen opens.
2. Select the Push tab and click Create New. The Map salesforce Fields window opens.
salesforce integration > push > create new
3. In the Object Settings tab, use the dropdowns to select the Object in Salesforce and the Action. For example, the Update the Account.
map salesforce fields > object settings tab
4. Select the Conditions tab and configure the push conditions with the dropdowns. For example, the Account ID must be in the Power Table Values.
map salesforce fields > conditions tab
5. Click the Mapping tab. Use the dropdowns to map Salesforce fields to the power table elements. For example, the SLA was mapped to Other and given the value Silver. Click Apply.
map salesforce fields > mapping tab
The configured push displays in the Salesforce Integration window.
6. Click Close.
configured push

Next, add the configured salesforce push to a button as an on-click action.
1. Click the button link icon. The On Click Action window opens.
2. Select the Start + icon. The Add Node screen opens.
3. Choose Salesforce Action and click Next.
on click action > salesforce action
4. For the Integration action, select both the configured Salesforce push and the power table get. The power table get is automatically created when inserting a power table.
When choosing more than one Integration Action, you can configure the action order by enabling Custom Order of Execution and assigning a number to each action. For this example, the Account will update and the table will refresh when the button is clicked. Click Next.
add node > salesforce action > integration action
5. Add a Tag and click Insert.
The node is added to the screen.
6. Click Apply.
added node to on click action
Save and Preview. When the button is clicked, all SLAs are updated to Silver.
updated sla

03 Update Selected Records

You can update specific fields in your table. For this example, the selected records will be updated using a dropdown.
sla drop down and power table example
To allow users to select specific records in a table:
1. Navigate to the Power Table Settings menu and click the Interactivity tab.
2. Enable the Allow Selection function. A column with selection boxes is added to the table.
allow selection function enabled
To map dynamic values for the dropdown:
1. Navigate to the DropDown settings menu.
2. Select the Dynamic Values radio button and click Sync from Salesforce. The Sync from Salesforce window opens.
drop-down settings > content > dynamic values > sync from salesforce
3. Use the dropdowns to configure the object and corresponding fields. Click Apply.

To edit the existing Push:
1. Navigate to the Salesforce Integrations window and select the Push tab.
2. Click the push edit icon. 
salesforce integration > push tab
The Object Settings remain as is.
3. Select the Conditions tab. Use the drop-down to change the condition to Power Table Selection.
map salesforce fields > conditions tab
4. Click the Mapping tab. Change the SLA mapping to the SLA value. Click Apply.
map salesforce fields > mapping tab
The push is updated.
5. Click Close.
configured push
The push updates will automatically reflect in the on-click action configuration.

Save and Preview. Use the SLA dropdown and select an SLA, check the check box next to each account you want to be updated, and click the button. The Account SLAs are updated.
updated selected SLA

04 Create a New Object

For this example, we will create a campaign member using specific contacts in a power table.
For the following steps, the existing table, the button, and the dropdown field were deleted.
A look-up element was inserted and configured to bring in campaigns from Salesforce. A power table was inserted to display contacts that will be associated with that campaign, and the Allow Selection function was enabled. A button with the label Create CM was inserted.

To create a new push:
1. Navigate to the Project Settings Menu and click the Salesforce tab. The Salesforce Integration screen opens.
2. Select the Push tab and click Create New. The Map salesforce Fields window opens.
3. In the Object Settings Tab, we set the Object In Salesforce to Campaign Member and the Action to Create.
map salesforce fields > object settings
4. Click the Mapping tab. Use the dropdowns to map Salesforce fields to project elements. You can push a list of items to Salesforce as separate records. Click the gear icon next to the Salesforce field that represents the separate records (in our case Contact Id). The If Settings window opens.
map salesforce fields > mapping tab > gear icon
5. Enable Bulk Mode and click Apply. This means that each Contact ID in the list will create a brand-new campaign member.
if settings > bulk mode
6. Click Apply on the Map Salesforce Fields window.

Once the push is configured, we can assign the Salesforce Action to the button:
1. Click the button link icon. The On Click Action window opens.
2. Select the Start + icon. The Add Node screen opens.
3. Choose Salesforce Action and click Next.
on click action > add node > salesforce action
4. Two configured actions were selected using the drop-down. By enabling the Custom Order of Execution function, the create push will run first and then refresh the table. Click Next.
integration action configuration
5. Add a Tag and Click Insert.
The node is added to the screen.
6. Click Apply.
on click action > configured node

Save and Preview. Use the lookup field to find a campaign and select names to be added to the campaign as members. Click the Create CM button. The names are added to the campaign in Salesforce.
added campaign members
Remember to visit the Integration Logs to view integration activity between your Titan project to Salesforce.

05 Got Feedback?

Additional Resources