Created
January 29, 2026 18:32
-
-
Save trycf/12df18e4fb8b2e4d6cb66df4035a22d2 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains hidden or 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
| <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