Changes

Scenario - bxp as a secure Website Data Store

4,516 bytes added, 08:59, 20 January 2015
no edit summary
= bxp setup =
 
== User Setup ==
 
As per section 3.1 of the BEAPI
 
 
Each user account that will be automatically logged in must have their External Id and External Key fields set. For Website Integration a user account is selected, as there is no differentiation between unique users when used on an external website.
 
 
A user must be selected against whom to log the records and perform searches. This is done using the System Access Management module inside bxp software. On every users account is an External System Id and External System Key field. Here the username and password used for external logging in is entered.
 
 
''Main Menu > System Access Management > User Administration > Add User - Security Details Only > Primary Security Details''
 
 
[[File:Scenario_webintegration_001.png]]
 
 
The IP address that the user / automated server may access from must also be set. This allocation can be done individually or as a group.
 
 
Individually, can be seen as above by placing the IP address in the IP Range box as a single IP or separated by commas.
 
 
Alternately as a group
 
 
''Main Menu > System Access Management > System Management > Group User - Modify Details > Click "Lookup User" to include all users >''
 
 
Select all the users you want to change, scroll to the bottom and click "Continue"
 
 
[[File:Scenario_webintegration_002.png]]
 
 
The user will also need appropriate permission to access the form. This is done using
 
 
''Main Menu > System Access Management > Security - Contact Access > Form - Single Add User by Form''
 
 
There are other functions available in this section to speed up group allocation of access.
 
 
 
== Understanding the Form Structure ==
 
 
As per 3.2 in the BEAPI
 
 
Some understanding of BE form structures is required in order to use the interface correctly when working with Forms.
 
 
Forms can only be created using the BE interface and each form has an id number, incrementally starting from 1, for each client system. Each form in BE uses a number of tables to record data and the key table is the data table. Table field names are created automatically and cannot be changed.
 
 
In the bxp interface, ‘Field Mapping’ is the process of creating user friendly field names, e.g. Firstname instead of strCDA_1_field_1_1, which make the system easier to use. The API requires a programmer to use the actual table names.
 
 
When a form is built, a table called CDA_X (where X is the id of the form) is also created. Using the function calls detailed in section 3 of this document, each of the fields in the table can be seen. The demo form used in all these examples has the following layout
 
 
* ‘intCDA_X_Id’ is the internal id record for every data record added to the system. This id number is created by BE.
* ‘strCDA_X_’ is a non displayed field that can be used for storing numeric or alphanumeric ids from other systems.
 
 
Since each form is different, the phone number field could have any name. However in the example used, strCDA_1_field_1_5 is the work phone number field. The system will perform a lookup on a field or a combination of fields, and convert the passed parameters to the CDA_Id. If more than one field is matched the system defaults to the lowest Id. With this in mind it is important that unique field combinations are used in the lookup.
 
 
To get the current form structure use:
 
 
https://ww3.allnone.ie/client/client_demo/cti/userCTI_CampaignStructure.asp?user_id='''abc123'''&user_key='''passkey'''&ID='''1'''
 
 
You will need to set up the user as above to get your user_id and user_key. The Id is the internal Id of the form which is available when you build the form inside bxp.
 
 
 
== Form setup for Website Integration ==
 
 
As per 3.3. in the BEAPI
 
 
For a form to be accessible externally it must be made available externally as well as being in-date and active. These options are available in Form Management. The ‘Externally Available’ option only applies for functionality where BE is used with external website integration.
 
 
If BE is being used for systems integration this option does not need to be set since, as the user is logged into the BE system, data does not leave BE.
 
 
For the form to be externally available:
 
 
''Main Menu > Form Management > Form - Primary Management > Form - Advanced Settings > Select your form > External''
 
 
The ‘Externally Available’ must be set to ‘Public’, as it will default to ‘Private’.
 
 
The default ‘Public Outcome’ must also be set.
 
 
[[File:Scenario_webintegration_003.png]]
 
7,528
edits