Last active
September 1, 2021 17:59
-
-
Save kale-bogdanovs/ca6fe963b7369ed1ef0cfbb1aa972a70 to your computer and use it in GitHub Desktop.
Workato JavaScript Action Skeleton
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const createRecord = (worker) => { | |
row = {} | |
// Here's where I'll process each worker record | |
return row | |
} | |
exports.main = ({ input_json }) => { | |
const input = JSON.parse(input_json) | |
const rows = [] | |
input.forEach(worker => { | |
rows.push(createRecord(worker)) | |
}) | |
return {rows: rows} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment