Saved Search Job¶
Saved Search Job Configuration¶
SavedSearchConfig¶
Defines a Mitto Saved Search Job |
||||
type |
object |
|||
properties |
||||
|
Title |
|||
See Mitto Job documentation |
||||
type |
string |
|||
|
Name |
|||
See Mitto Job documentation |
||||
type |
string |
|||
|
Type |
|||
IO job only |
||||
type |
string |
|||
pattern |
^io$ |
|||
|
Input |
|||
Saved Search Input |
||||
allOf |
||||
|
Steps |
|||
See Mitto Job documentation |
||||
type |
array |
|||
items |
type |
object |
||
|
Store |
|||
See Mitto Job documentation |
||||
type |
object |
|||
|
Output |
|||
See Mitto Job documentation |
||||
type |
object |
|||
additionalProperties |
False |
|||
definitions |
||||
|
BasicCredentials |
|||
Defines the credentials (email/password) used to invoke the RESTlet and Saved Search. Use of these is strongly discouraged. These were the only credentials supported by the first release supporting RESTlet Saved Search. A subsequent release added support for Token-Based Authentication with RESTlet Saved Search. It is much better/safer to use the newer TBACredentials instead of these. |
||||
type |
object |
|||
properties |
||||
|
Account |
|||
The NetSuite account to be used.
Example: |
||||
type |
string |
|||
|
||||
The email address associated with the account.
Example: |
||||
type |
string |
|||
|
Password |
|||
The password associated with the account/email.
Example: |
||||
type |
string |
|||
|
Role |
|||
The internal id of the |
||||
type |
integer |
|||
minimum |
1 |
|||
|
Url |
|||
If present, the value is used in place of the URL generated by the
connector. If the URL does not begin with the account number and end
with Example: |
||||
type |
string |
|||
additionalProperties |
False |
|||
|
TBACredentials |
|||
Defines credentials for use with TBA RESTlet Saved Search. These credentials match credentials used elsewhere in the connector. |
||||
type |
object |
|||
properties |
||||
|
Account |
|||
The NetSuite account to be used.
Example: |
||||
type |
string |
|||
|
Consumer Key |
|||
The CONSUMER KEY associated with the NetSuite role to be used. |
||||
type |
string |
|||
|
Consumer Secret |
|||
The CONSUMER KEY associated with the NetSuite role to be used. |
||||
type |
string |
|||
|
Token Id |
|||
The TOKEN ID associated with the NetSuite role to be used. |
||||
type |
string |
|||
|
Token Secret |
|||
The TOKEN SECRET associated with the NetSuite role to be used. |
||||
type |
string |
|||
|
Url |
|||
If present, the value is used in place of the URL generated by the
connector. If the URL does not begin with the account number and end
with Example: |
||||
type |
string |
|||
additionalProperties |
False |
|||
|
Restlet |
|||
Defines the RESTlet to be called to invoke the SavedSearch. |
||||
type |
object |
|||
properties |
||||
|
Script |
|||
Script id of the NetSuite RESTlet that will be called to invoke
the saved search. This is the argument to the Example: If the |
||||
type |
integer |
|||
minimum |
1 |
|||
|
Deploy |
|||
Deploy id of the NetSuite RESTlet that will be called to invoke the
saved search. This is the argument to the Example: If the |
||||
type |
integer |
|||
minimum |
1 |
|||
additionalProperties |
False |
|||
|
SavedSearch |
|||
Parameters that control data returned by this inputter. When used in a simple “load” job configuration, this inputter returns all records produced by the specified NetSuite saved search. When used in an “upsert” job configuration, this inputter returns all
records produced by the specified NetSuite saved search for whom
the date of the This inputter invokes the specified NetSuite saved search via a
RESTlet. The RESTlet ultimately uses the NetSuite NetSuite’s handling of the last modified date during the execution of an upsert is somewhat unusual; an understanding of it is important to getting the desired results.
Let’s walk through an example.
From this is can be seen that the minimum granularity for upserts is one day / 24 hours on whole-day boundaries. Typically, both “load” and “upsert” jobs need only provide values for
|
||||
type |
object |
|||
properties |
||||
|
Saved Search Id |
|||
The id of the saved search that will be called by
the RESTlet. This is the value of |
||||
type |
string |
|||
examples |
customsearch766 |
|||
|
Record Type |
|||
The record type associated with the saved search to be called by the RESTlet. |
||||
type |
string |
|||
examples |
custentity_federal_id_num |
|||
|
Last Modified Column |
|||
The column name to be used when selecting records based on
|
||||
type |
string |
|||
examples |
timestamp |
|||
default |
lastmodifieddate |
|||
|
Last Modified Date |
|||
If last_modified_date is If a value is provided for this parameter, it overrides any value
obtained from the steps of the job. The value must be formatted so that
it exactly matches the Important: This value must be in the NetSuite dataceter timezone
which is Pacific Time (e.g.: For example, to use |
||||
type |
string |
|||
examples |
1/12/2021 1:45 pm |
|||
|
Date Time Format |
|||
This controls how the last modified date datetime object is formatted as a string when it is passed to the RESTlet. This value is is eventually used as an argument to Python’s
NOTE: The default value
matches the default setting in NetSuite’s preferences. If
preferences in an account have been changed, a
value for |
||||
type |
string |
|||
pattern |
^((?!(%m|%d)).)*$ |
|||
default |
{month}/{day}/%Y %-I:%M %p |
|||
|
Batch Size |
|||
Number of records to include in a single response from the RESTlet.
The default value is expected to always result in successful RESTlet
invocations. Saved searches returning modest amounts of data may see
performance improvements for larger values (e.g., |
||||
type |
integer |
|||
maximum |
50000 |
|||
minimum |
1000 |
|||
default |
1000 |
|||
|
Batches Max |
|||
The saved search RESTlet will be invoked no more than
|
||||
type |
integer |
|||
exclusiveMinimum |
0 |
|||
default |
Infinity |
|||
|
Row Internal Id |
|||
The saved search will be filtered so as to return only records with internal ids equal to or greater than this value. |
||||
type |
integer |
|||
default |
1 |
|||
|
Row Line Id |
|||
Set this to 0 if the saved search results contain a Line Id column. |
||||
type |
integer |
|||
|
Restlet Log Level |
|||
The NetSuite message type the RESTlet should use when logging messages during execution. This is used to control RESTlet logging without requiring a NetSuite admin to change the log level associated with the RESTlet. |
||||
type |
string |
|||
pattern |
DEBUG|AUDIT|ERROR|EMERGENCY |
|||
default |
DEBUG |
|||
additionalProperties |
False |
|||
|
SavedSearchInput |
|||
Defines Saved Search Input |
||||
type |
object |
|||
properties |
||||
|
Credentials |
|||
Credentials |
||||
anyOf |
allOf |
|||
allOf |
||||
|
Restlet |
|||
Restlet |
||||
allOf |
||||
|
Saved Search |
|||
SavedSearch |
||||
allOf |
||||
|
Use |
|||
Inputter to be used to get data. |
||||
type |
string |
|||
pattern |
^netsuite.io#NetsuiteSavedSearchInput$ |
|||
additionalProperties |
False |