Skip to content

Instantly share code, notes, and snippets.

@albinkjellin
Created August 7, 2012 18:25
Show Gist options
  • Save albinkjellin/3288062 to your computer and use it in GitHub Desktop.
Save albinkjellin/3288062 to your computer and use it in GitHub Desktop.
Create CSV Format
def resultString = ''
payload.each{
resultString +=('"'+it.IsWon+'", ')
resultString +=('"'+it.AccountId+'", ')
resultString +=(it.Amount+', ')
resultString +=(it.FiscalQuarter+', ')
resultString +=('"'+it.LeadSource+'", ')
resultString +=('"'+it.OwnerId+'", ')
resultString +=('"'+it.Type+'"')
resultString = resultString +'\n'
}
return resultString
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment