Related Topics
Social Media Custom Variables
Process Director enables you to connect to a variety of Social Media Datasources. For the purposes of this documentation, we will include other services, such as Microsoft Dynamics, even though they aren't classified as social media connections, since the connections are implemented in the same fashion as social media connections.
There are four sysvar types that you can use when creating social media connections:
- ConnectionString: String value. The Connection string used to connect to the social media source. The connection string for each social media connector already have default values in Process Director that automatically use the appropriate OAuth app tokens and token secrets to connect to the data source. They should not, therefore, require customization. You may, of course, customize these connection strings if necessary. For Microsoft OneDrive, Dropbox, and Box.Net, the Connection String properties aren't needed, but these data sources still implement the remaining three sysvar types below.
- Accomplishment: Boolean value. Show the Client token to allow users to customize it.
- DefaultAppToken: String value. The default OAuth application token for the social media source.
- Default App Token Secret: String value. The default AOAuth token secret for the social media source.
Each of the fours sysvar types above are implemented separately for each social media source as follows:
SOCIAL MEDIA SOURCE | SYSVAR NAME |
---|---|
LinkedInConnectionString | |
LinkedInShowClientToken | |
LinkedInDefaultAppToken | |
LinkedInDefaultAppTokenSecret | |
Google Sheets | GoogleSheetsConnectionString |
GoogleShowClientToken | |
GoogleDefaultAppToken | |
GoogleDefaultAppTokenSecret | |
Dropbox | DropboxShowClientToken |
DropboxDefaultAppToken | |
DropboxDefaultAppTokenSecret | |
Microsoft OneDrive | OneDriveShowClientToken |
OneDriveDefaultAppToken | |
OneDriveDefaultAppTokenSecret | |
Box.Net | BoxNETShowClientToken |
BoxNETDefaultAppToken | |
BoxNETDefaultAppTokenSecret |
In addition, for users of Federated Identity, Facebook, Twitter and Google, there are tokens and token secrets specifically for use with federated identity, and which are implemented through the following string variables:
SOCIAL MEDIA SOURCE | SYSVAR NAME |
---|---|
GoogleDefaultSSOAppToken | |
GoogleDefaultSSOAppTokenSecret |
Example
public override void SetSystemVars(BPLogix.WorkflowDirector.SDK.bp bp)
{
// Default connection string
bp.Vars.ShowSocialGoogleSheets = true;
bp.Vars. GoogleSheetsConnectionString =
"Offline=false;user={0};password={1};";
}
There is a set of Boolean variables that determine whether specific social media Datasources will display as available Datasource types when creating new Datasource objects in the Process Director interface. Setting the value to "false" means that the item won't be displayed in the Datasource Type dropdown in the Create Datasource screen of the Process Director interface.
The available variables are listed below.
- ShowSocialGoogleSheets
- ShowSocialAmazonDB
- ShowSocialSalesforce
- ShowSocialDropbox
- ShowSocialLinkedIn
- ShowSocialOneDrive
- ShowSocialBoxNET
- ShowDynamics
Example
public override void SetSystemVars(BPLogix.WorkflowDirector.SDK.bp bp)
{
// Default connection string
bp.Vars.ShowSocialOneDrive= false;
bp.Vars.ShowDynamics= false;
}
Additional Social Media variables are documented below.
This string variable enables you to customize the connection string to Amazon DB. The default value is shown in the example below.
Example
public override void SetSystemVars(BPLogix.WorkflowDirector.SDK.bp bp)
{
// Default connection string
bp.Vars.AmazonDBConnectionString =
"Offline=False;Access Key={0};Secret Key={1}";
}
This string variable enables you to customize the connection string to Microsoft Dynamics CRM. The default value is shown in the example below.
Example
public override void SetSystemVars(BPLogix.WorkflowDirector.SDK.bp bp)
{
// Default connection string
bp.Vars.DynamicsConnectionString = "User={0};Password={1};
Url={2};CRMVersion=CRM 2013;";
}
This string variable enables you to customize the connection string to SalesForce. The default value is shown in the example below.
Example
public override void SetSystemVars(BPLogix.WorkflowDirector.SDK.bp bp)
{
// Default connection string
bp.Vars.SalesforceConnectionString = "User={0};Password={1};
Security Token={2}";
}
Documentation Feedback and Questions
If you notice some way that this document can be improved, we're happy to hear your suggestions. Similarly, if you can't find an answer you're looking for, ask it via feedback. Simply click on the button below to provide us with your feedback or ask a question. Please remember, though, that not every issue can be addressed through documentation. So, if you have a specific technical issue with Process Director, please open a support ticket.