Following is a code sample of a data flow for writing data from SFTP to Gigya, suitable for a data flow that is scheduled at regular intervals and updates changes made to existing accounts. This sample flow includes extracting a CSV file from SFTP, parsing it to DSV, renaming the fields to a format that matches Gigya's database (in this case the fields are several examples of different newsletters), and finally uploading the transformed data into the Gigya account. You can use this flow as a template and change some of the steps, for example, extract a JSON file rather than CSV. Note that datasource.write.gigya.account is the final step, so any transformation to the data, including transforming a string into Boolean or handling empty fields, should be handled in a previous step.
Note that IdentitySync jobs are scheduled in UTC time. Therefore, the platform participating in the flow should be set to the UTC timezone to ensure that file requests are handled properly.
For a full outline of the dataflow steps that are available out of the box, see Component Repository.
Importing Lite Accounts
Following is sample code for importing lite accounts from SFTP to Gigya. This dataflow is identical to the one created in the Console when selecting Gigya with SFTP > Import Lite Accounts from SFTP.