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. |
Item name | Required/Optional | Use of Variables | Description | Supplement |
---|---|---|---|---|
Destination | Required | Not Available | Select Global Resources.
|
|
Output file | Required | Available | Input the file path of the CSV format.
By pressing the [Browse] button, an file chooser will be activated and a file can be chosen. |
|
Table Name | Required | Not Available | Select the name of a table in Salesforce. | |
Schema definition | Required | - | Set items subject to writing to Salesforce. |
|
Schema definition/Label | Required | Not Available | Display the lable name of the column of the table specified in [Table Name]. | |
Schema definition/API | Required | Not Available | Display the API name of the column of the table specified in [Table Name]. | |
Schema definition/Type | Required | Not Available | Display the data type of the row of the table specified in [Table Name]. | |
Relationship definition | Optional | - | In the case that relationship items exist in the Schema Definition, set items subject to updating by external key. By selecting the external key item of the relation counterpart object, it becomes possible to pass data with an established relationship. |
|
Relationship definition/Base field | Required | Not Available | Display the API Name of the row of the relation item of the table specified in [Table Name]. | |
Relationship definition/Relationship name | Required | Not Available | Display the relationship name of the row of the relation item of the table specified in [Table Name]. | |
Relationship definition/Related Object | Optional | Not Available | Select the API Name of the relation counterpart object in the relation item column of the table specified in [Table Name]. | |
Relationship definition/Foreign key field | Optional | Not Available | Select the external key item of the relation counterpart object in the relation item column of the table specified in [Table Name]. |
|
Item name | Description | Supplement |
---|---|---|
Preview | Display the contents of the file specified by [Output file] by activating a previewer. |
|
Create schema... | The items to be read from Salesforce can be added/deleted.![]() |
Item name | Required/Optional | Use of Variables | Description | Supplement |
---|---|---|---|---|
Encoding | Required | Available | Select or input the character encoding of the file to be written.
When input, you can specify encode supported in Java SE Runtime Environment. ![]() |
|
Column name type | Required | Not Available | Choose the display type of the column name, for displaying the schema in mapping.
|
|
Writing method | Required | Not Available | Select either to add at the end of the file or overwrite, if the specified file already exists.
|
Item name | Description | Supplement |
---|---|---|
Display Table Information... | You can check the table structure of the object you are operating.![]() |
![]() |
Load All Table Information... | Retrieve all possible table information After running, you can verify the retrieved information from [Table Information]. |
|
Read schema definition from file... | Select a file from the file chooser and read the name of field API on the first line of the file specified in the comma-separated values. Set this as the schema definition. |
|
Item name | Required/Optional | Use of Variables | Description | Supplement |
---|---|---|---|---|
Enable transaction | Required | Not Available | Choose whether to perform transaction processing.
![]() |
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. |
Component Variable Name | Description | Supplement |
---|---|---|
input_count | The number of input data is stored. |
|
file_path | The output file path is stored. |
|
server_url | The end point URL after Login is stored. |
|
session_id | The session Id is stored. |
|
message_category | In the case that an error occurs, the category of the message code corresponding to the error is stored. |
|
message_code | In the case that an error occurs, the code of the message code corresponding to the error is stored. |
|
message_level | In the case that an error occurs, the importance of the message code corresponding to the error is stored. |
|
operation_api_exception_code | The ExceptionCode of the occured error, in a case of API error, is stored. |
|
operation_error_message | If an error occurs, the error message of the occured error is stored. |
|
operation_error_trace | When an error occurs, the trace information of the occured error is stored. |
|
Category | Description | Supplement |
---|---|---|
Specification Requirements | One record of "Account" data and multple records of "Contact" data that are tied to the "Account" data need to be written. If any of data writing fails, it needs to be handled as failure-for-all. |
|
Settings | A file is output by the [Generate Multi Data File] process, in the order of "Account" data and then "Contact" data. An updating is performed by the [Write Multi Data] process, based on the contents of the output file. ![]() |
|
Number in the Image | Name | Description | Supplement |
---|---|---|---|
(1) | Data Input Image | This is the data input image, for writing to the "Account". | |
(2) | Data Input Image | This is the data input image, for writing to the Contact.
Here, "Account.AccountCode__c" is specified in the [Relationship definition] |
|
(3) | Settings for Creating Multiple Data File | Each input data (1) and (2) is written to a file in this order by the [Generate Multi Data File] process. Specify "/data/Sample.csv" as [Output File] for both. |
|
(4) | Script Image | This is the script implementation image of this description. | |
(5) | Settings for Writing Multiple Data | An update is performed based on the file with accumulated data by the [Write Multi Data] process . Specify "/data/sample.csv" as [Input file] Specify "3" for [Number of input data fields to be added to output schema]. |
|
(6) | Result Data Writing Mapping Image | This is the mapping image of outputting the result data to a CSV file after writing. Since the number "3" is specified for [Number of input data fields to be added to output schema] in (5), the values of the input data items can be handled up to three items from the beginning as well as the results data. |
|
(7) | Resulting Data Image(With allOrNone) | This is the resulting data image of writing with the setting of [Checked] for [AllOrNone Header(allOrNone)] in the global resource property. If one or more errors occur regarding the data in a Insert call, all records in the same call will be rollbacked. |
|
(8) | Resulting Data Image(Without allOrNone) | This is the resulting data image of writing with the setting of [Not Checked] for [AllOrNone Header(allOrNone)] in the global resource property. Even if one or more errors occur regarding the data in a Insert call, a rollback will not take place and the records updatings become effective. |
Account 1, Account 2, Contact 1, Contact 2, Contact 3, Case 1, Account 3, Account 4, Contact 4 |
File Name | Extention | Encode | Newline Character |
---|---|---|---|
Any | CSV | Any | Auto |
Row Name | ID | Description | Number of Columns | Position |
---|---|---|---|---|
Table Row | * | Specify one object API name. | 1 Column. (excludes the ID column) | Output to either the beginning of the file or after the existing [Data Row]. |
Schema Row | ** | Define a comma-delimited list of Schema API names to write. Define in the following format when updating a read attribute by external ID. "Reference Field Name:Relationship Name:Related Object Name:Foreign Key Field Name" |
Write fields of the target schema. (excludes the ID column) | Output after the [Table Row]. |
Data Row | (empty) | Specify the data of the records to be written as a comma delimitated string. Please ensure the order of the columns to be output matches the field order specified in the [Schema Row]. |
Write fields of the target schema. (excludes the ID column) | Output after the [Schema Row]. Continue to output Data Rows when representing more than one record. |
Category | Description | Supplement |
---|---|---|
Specification Requirements | Regarding to the update processing of "Contact", it needs to set the referring object ID in the the "Account" ID item (Reference Item).
As for the relationship to the referring "Account", it needs to tie to the record according to the AccountCode of the input data. |
|
Settings | Upon updating to "Contact", by passing the value of the Account Code (External key item created before hand: AccountCode__c) of the "Account", which is the referred object, to Mapper, the ID of the corresponding referred object is automatically obtained and set the relationship to the "Account" ID Item (Reference Item). |
|
Number in the Image | Name | Description | Supplement |
---|---|---|---|
(1) | The Data Image of the "Account" | This is the data image of the object which is refered by the "Contact". | |
(2) | The External Key of the "Account" | Pre set "AccountCode__c" as external key. | |
(3) | Data Input Image | This is the data input image, for updating to the "Contact". |
|
(4) | Settings for the updating (Insert, Update, Upsert) to the "Contact". | Here, the "Account ID", "Last Name", "First Name", "E-mail" are the four considered items for updating. | |
(5) | Relationship Definition Setup | The external key of the referred object in "Foreign key field" should be selected. Here, the external key "Account.AccountCode__c" is selected as the key item for setting the relationship. |
|
(6) | The Updating Results Data Image of the "Contact" | This is the updating results data image of the "Contact". |
|
Number in the Image | Name | Description | Supplement |
---|---|---|---|
(1) | Selected Fields | Select items for reading from and/or writing to Salesforce. | |
(2) | UnSelected Fields | Select items not for reading from and/or writing to Salesforce. |
|
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. |
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] |
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. |