To configure Salesforce service in the Integration Service Definition tab, follow these steps:
Field | Description |
---|---|
Authentication |
|
Field | Description |
---|---|
Custom Code |
Custom Code enables you to specify dependent JAR. Important: Make sure that you upload a custom JAR file that is built on the same JDK version used for installing Kony Fabric Integration. |
Throttling |
API throttling enables you to limit the number of request calls within a minute. If an API exceeds the throttling limit, it will not return the service response.
Note: In case of On-premises, the number of nodes in a clustered environment is set by configuring the |
Note: All the fields in the Advanced section are optional.
In the Description field, provide a suitable description for the service.
To enable the proxy, select the Use proxy from settings check box. By default, the check box is cleared. The Use proxy from settings check box dims when no proxy is configured under the Settings > Proxy.
The Operations List tab appears only after the service definition is saved.
Note: Click Operations List tab > Configure Operation. The Configured Operations list appears.
To create an operation, follow these steps:
Click SAVE & ADD OPERATION in your service definition page to save your service definition and display the NewOperation tab for adding operations.
OR
Click Add Operation to add a new operation or from the tree in the left pane, click Add > Add New Operation.
Note: If you provide incorrect Salesforce endpoint details, the Object list will contain only _Login object.
To configure an operation, provide the following details:
Field | Description |
---|---|
Name | Enter a unique name for your operation. |
Operation Security Level |
It specifies how a client must authenticate to invoke this operation. Select one of the following security operations in the Operation Security Level field.
|
Operation Path |
Modify the path if required. Note: If you provide incorrect Salesforce endpoint details, the Object list will contain only _Login object. |
Field | Description |
---|---|
Custom Code Invocation | You can add pre and post processing logic to services to modify the request inputs. When you test, the services details of various stages in the service execution are presented to you for better debugging. All options in the Advanced section are optional. For more details, refer to Preprocessor and Postprocessor. |
Properties |
Additional configuration properties (timeout, cachable, unescape embedded xml in response, response encoding, number of connection retries allows you to configure service call time out cache response |
Front-end API | It allows you map your endpoint (or) backend URL of an operation to a front-end URL. |
Server Events | Using Server Events you can configure this service to trigger or process server side events. For detailed information, refer Server Events. |
Note: All options in the Advanced section are optional.
Integration services accept only form-url-encoded
inputs for all the input parameters provided in the service input parameters (request input).
You can perform the following actions in Request Input tab:
Field | Description |
---|---|
Name | It Contains a Unique Identifier. Change the name if required. |
Test Value | Enter a value. A test value is used for testing the service. |
Default Value | Enter the value, if required. The default value will be used if the test value is empty. |
Scope |
Select Request or Session. It is set to Request by default.
|
Datatype |
Select one of the following data types.
|
Encode |
Select the check box to enable encoding of an input parameter. For example, the name New York Times would be encoded as New%20York%20Times when the encoding is set to True. The encoding must also adhere to the HTML URL encoding standards. |
To validate the operation details, click Save and Test. For more details, refer to Test a Service Operation.
Note: If you define parameters inside a record as the session, the session scope will not get reflected for the parameters.
To validate the operation details, click Save and Test. For more details, refer to Test a Service Operation.
Note: To use an existing integration service, refer to How to Use an Existing Integration Service.
Note: You can view the service in the Data Panel feature of Kony Visualizer. By using the Data Panel, you can link back-end data services to your application UI elements seamlessly with low-code to no code. For more information on Data Panel, click here.
If the service is using a log-in endpoint, ensure that you specify the same set of credentials (Client ID, Client Secret, User ID, Password) for design time and run-time.
If the log-in endpoint credentials are different for design time and run-time, the system throws an error while accessing a service from an app.
Error 401: Request Unsuccessful Server responded with 401.
If you want to the use log-in endpoint with different credentials for design time and run-time, then parametrize instance URL in the operation path, and send that URL from an app.
For example:
To parametrize an instance URL, follow these steps:
ID | Path | Scope |
---|---|---|
Authorization | concat(//OAuth/token_type," ",//OAuth/access_token | session |
instanceURL | //OAuth/instance_url | session |
https://ap1.salesforce.com/
to $<instanceURL>/
.ID | Path | Scope | Encode |
---|---|---|---|
queryString | Select ID from contact | session | |
instanceURL | //OAuth/instance_url | session | No |
Copyright © 2020 Kony, Inc. All rights reserved. |