processSourceData(context)
Function Declaration |
|
Type |
Interface function |
Description |
Runs a custom logic after the section source dataset has been retrieved through a section source query, search, or SuiteQL query. This function is useful for adding new properties (columns) to the dataset. For example, you can use this function to add custom fields to the dataset and populate them with data that was not retrieved by the query or search. You also can parse and process a JSON format column from the query and add the results to the dataset. |
Returns |
data: any[ ] |
Input Parameters |
source: SectionSource, request: FileProcessingRequestParams, data: any[ ]
Note:
The data: any[ ] parameter is the data array with the results obtained from the query. |
Related Topics
- File Builder Interface Functions
- afterGetPendingRequest(context)
- getPendingRequestFailure(context)
- processSourceFailure(context)
- beforeProcessRow(context)
- afterProcessRow(context)
- beforeSaveOutputFile(context)
- beforeSaveOutputFileWithOpt(context)
- afterSaveOutputFile(context)
- customizeQuery(context)
- customizeSearch(context)
- customizeFieldValue(context)