Sort(PicklistValue)

Operation Name

Sort(PicklistValue)

Function Overview

This operation performs a sort of picklist values, based on input data.
The sort order can be specified by the order of the picklist values passed to input data.
Send all records in one call, regardless of the number of input data.
Call type or the result of the process failiure will differ depending on the API version of the Global Resource. With regarding to the API specification utilized by this operation, please refer to the version of the API document, selected for the Global Resource, in the below-mentioned link.

Data Model

The data model of this component is the Table Model type.

Properties

For information about using variables, refer to "variables".
Basic Settings
Item name Required/Optional Use of Variables Description Supplement
Name Required Not Available Enter the name that appears on the script canvas.  
Input Data Required Not Available Select the component on the script canvas.  
Required Settings
Item name Required/Optional Use of Variables Description Supplement
Destination Required Not Available Select Global Resources.
  • [Add...]:
    Add new global resource.
  • [Edit...]:
    Global resource settings can be edited by [Edit Resource list].
 
Table Name Required Not Available Specify the Salesforce table name.  
PicklistFieldName Required Not Available Specify the select list field name.  
Option Settings
Item name Required/Optional Use of Variables Description Supplement
Obtaining results after waiting for the completion of the operation Optional Not Available The processes are asynchronously executed at the server side after issuing a request.
Select whether or not to monitor the situation until the server-side processings are finished, and to obtain the results.
  • [Checked]:(default)
    Wait until the processes are finished, and then obtain the results.
  • [Not Checked]:
    Obtain the results immediately after the request, without waiting for the processes to be finished.
  • Valid only when selecting API 29.0 or earlier.
Wait Time before the start of monitoring (sec) Optional Available Enter the waiting time, until the beginning of monitoring, in seconds.
  • Valid only when selecting API 29.0 or earlier.
  • Will be valid and required only when [Obtaining results after waiting for the completion of the operation] is checked.
  • The default value is "3".
Monitoring Interval (sec) Optional Available Enter the monitoring intervals.
  • Valid only when selecting API 29.0 or earlier.
  • Will be valid and required only when [Obtaining results after waiting for the completion of the operation] is checked.
  • The default value is "10".
Property Action
Item name Description Supplement
Display Table Information... You can check the table structure of the object you are operating.
For more information on how to view the table structure, please refer to Display Table Information
  • Click [Load All Table Information....] if you would like to check the table structure of other objects.
Load All Table Information Retrieve all possible table information
After running, you can verify the retrieved information from [Table Information].
 
Comment
Item name Required/Optional Use of Variables Description Supplement
Comment Optional Not Available You can write a short description of this adapter.
The description will be reflected in the specifications.
 

Schema

Input Schema

<?xml version="1.0" encoding="UTF-8" ?>
<table>
  <row>
    <column>fullName</column>
  </row>
  <row>
  :
  </row>
</table>

Element Name Column Name Description Supplement
row
-
Repeats as many times as the number of picklist values to be sorted.  
column fullName Passes the picklist values.
  • Only the passed values are sorted from the beginning, followed by the values that are not passed.
  • If a value that does not exist is passed, an error occurs.
  • If duplicated values are passed, an error occurs.

Output Schema

Because the processing of picklist values takes place as a whole, there will not be input data unit results.
The results information can be obtained from the component variables.

Reading Schema by Mapper

The schema will be read automatically.
Please refer to Editing Schema for detials.

Large Data Processing

Performs Large Data Processing.

Transaction

Transaction is not supported.

Usage on PSP Script

Cannot be used on PSP Script.

Available Component variables

Component Variable Name Description Supplement
read_count The number of passed data is stored.
  • The default value is null.
result_async_done The completion flag (true,false) of the processing results(AsyncResult) is stored.
  • The default value is null.
  • Stored only when selecting API 29.0 or earlier.
result_async_id The ID of the processing results(AsyncResult) is stored.
  • The default value is null.
  • Stored only when selecting API 29.0 or earlier.
result_async_message The message of the processing results(AsyncResult) is stored.
  • The default value is null.
  • Stored only when selecting API 29.0 or earlier.
result_async_state The state of the processing results(AsyncResult) is stored.
  • [Queued]:The process has not begun.
  • [InProgress]:Currently processing.
  • [Completed]:The process has completed.
  • [Error]:The process was not successful.
  • The default value is null.
  • Stored only when selecting API 29.0 or earlier.
result_async_statusCode The status code of the processing results(AsyncResult) is stored.
  • The default value is null.
  • Stored only when selecting API 29.0 or earlier.
server_url The end point URL after Login is stored.
  • The default value is null.
session_id The session Id is stored.
  • The default value is null.
message_category In the case that an error occurs, the category of the message code corresponding to the error is stored.
  • The default value is null.
message_code In the case that an error occurs, the code of the message code corresponding to the error is stored.
  • The default value is null.
message_level In the case that an error occurs, the importance of the message code corresponding to the error is stored.
  • The default value is null.
operation_api_exception_code The ExceptionCode of the occured error, in a case of API error, is stored.
  • The default value is null.
  • For any error other than an API Error, the value is not stored.
  • The content to be stored may change according to the version of DataSpider Servista.
operation_error_message If an error occurs, the error message of the occured error is stored.
  • The default value is null.
  • The content to be stored may change according to the version of DataSpider Servista.
operation_error_trace When an error occurs, the trace information of the occured error is stored.
  • The default value is null.
  • The content to be stored may change according to the version of DataSpider Servista.

Display Table Information

This display shows the available operations on Salesforce tables as well as field properties of the tables.
Also, the field information can be printed out.



Number in the Image Name Description Supplement
(1) Table Name Select the table whose structure to be shown.  
(2) Table Information Display the available operations on the selected table.  
(3) Length Display the Number of Digit of item  
(4) External ID Display whether or not the object item is set as an external ID.  
(5) Createble Display whether or not it can be set a value when adding data.  
(6) Updatable Display whether or not it can be set a value when updating data.  
(7) Nullable Display whether or not it can be set NULL when adding or updating data.  
(8) Default value Display whether or not Salesforce automatically set a default value when adding data.  
(9) Reference To Display the referring object name if the item is in reference relationship or master-servant relationship.  

Specification Limits

Main exceptions

Exception Name Reason Resolution
ResourceNotFoundException
Resource Definition is Not Found. Name:[]
[Destination] is not specified. Specify [Destination].
ResourceNotFoundException
Resource Definition is Not Found. Name:[<Global Resource Name>]
The resource definition selected in [Destination] cannot be found. Verify the global resource specified in [Destination]
java.net.UnknownHostException This exception occurs when the PROXY server specified in the global resource cannot be found. Verify the condition of the PROXY server. Or verify [Proxy Host] of the global resource specified in the [Destination].
java.net.SocketTimeoutException
connect timed out
A time-out has occurred while connecting to Salesforce. Verify the network condition and Salesforce server condition. Or check [Connection timeout(sec)] of the global resource specified in the [Destination].
java.net.SocketTimeoutException
Read timed out
A time-out has occurred while waiting for a responce from the server after connecting to Salesforce. Verify the network condition and Salesforce server condition. Or check [Timeout(sec)] of the global resource specified in the [Destination].
jp.co.headsol.salesforce.adapter.exception.SalesforceAdapterIllegalArgumentException Invalid value is set for the property of Salesforce adapter. Check the error message, and verify the settings.
com.sforce.soap.partner.fault.LoginFault Login to Salesforce has failed. Check the ExceptionCode or error message, and refer to the information about this type of error in Salesforce-related documents etc.
com.sforce.soap.partner.fault.InvalidFieldFault An item included in the executed SOQL is invalid. Check the ExceptionCode or error message, and refer to the information about this type of error in Salesforce-related documents etc.
com.sforce.soap.partner.fault.UnexpectedErrorFault An unexpected error has occured while processing to Salesforce. Check the ExceptionCode or error message, and refer to the information about this type of error in Salesforce-related documents etc.