I am new bie on coldfusion, Please help me to get All ID, Name, Type Using CFLOOP?
<cfset categoryList = application.salesforce.queryObject("SELECT Id, Name FROM Category__c") />
<cfdump var="#categoryList#">
<cfloop list="#structKeyList(categoryList)#" index="key">
<cfdump var="#categoryList[key]#">
</cfloop>
The above Code give me the below result :
true
3
Based on the updates that you have made to your question it looks like you might need to do something like this:
Note that I have not tested this code