Created
August 7, 2012 18:25
-
-
Save albinkjellin/3288062 to your computer and use it in GitHub Desktop.
Create CSV Format
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
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