Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save trycf/12df18e4fb8b2e4d6cb66df4035a22d2 to your computer and use it in GitHub Desktop.

Select an option

Save trycf/12df18e4fb8b2e4d6cb66df4035a22d2 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
data = QueryNew(
[
{ ein: 'THE_FIRST_ONE', id: 90001 },
{ ein: '[email protected]', id: 380248 },
{ ein: '[email protected]', id: 390957 },
{ ein: '[email protected]', id: 262143 },
{ ein: '[email protected]', id: 266534 },
{ ein: '[email protected]', id: 366746 },
{ ein: '[email protected]', id: 277838 },
{ ein: 'THE_LAST_ONE', id: 9999 }
]
);
mapped = {};
for ( row in data ) {
mapped[row.ein] = row.id;
}
writeDump( data );
writeDump( mapped );
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment