You can connect App Connect to an application like Salesforce using multiple different accounts, and then use those accounts in the same flow. You can also rename accounts before use to have more-meaningful names than the default names.
One example for the use of multiple accounts is in a flow that synchronizes two different Salesforce accounts. Consider the following flow for an API that uses a batch process to sync from the Salesforce account Business Partner Org
to the account Sales Org Production
:
In the above flow (imported from a template) you can see that the Salesforce accounts are not connected, because the Salesforce accounts Sales Org Production
and Business Partner Org
do not already exist in App Connect. If the accounts did already exist, then they would automatically have been connected to the actions in the flow.
When you select a node in a flow, you can use the accounts drop-down menu to select an existing account or to add new accounts. New accounts are created with a default name like Account 1
, and where available context information like the email address for the account; for example: Account 1 (accnt_addr@gmail.com)
.
You can also add new accounts through the Applications tab.
If you intend renaming your accounts, you should do so before using the account in a flow. Otherwise, before you can rename an account you must either delete all flows that use the account or edit the flows and remove the nodes that use the account.
Adding multiple accounts
Consider the preceding flow for which the company has already defined its own Salesforce account, Sales Org Production
, but wants to add the Salesforce account Business Partner Org
.
To add the new Salesforce account:
- In App Connect Designer, click the Applications tab.
- Scroll down to Salesforce and expand the accounts menu.
- Select the option Add a new account….
- In another window, complete the steps to authorize App Connect access to the Salesforce account.
- Check that the new Salesforce account has been added with the default name:
Account 1 (partner_email_addr)
The Salesforce accounts menu offers the multiple accounts, which you can choose from when you select a Salesforce node in any flow:
Renaming an account before use in a flow
To rename the new account Account 1
to Business Partner Org
, in the Salesforce accounts menu on the Applications tab:
- Select the account that you want to rename
- Click the more options menu (⋮), and there select Rename Account
- In the Rename Account dialog, type the new name and then click Rename Account
The Salesforce account is shown with its new name: Business Partner Org (partner_email_addr)
Selecting different accounts in a flow
Consider the example flow that has been imported but not yet had the accounts selected.
To select an account to use on a node, you just select the node and then select the account from the accounts menu shown.