You need to sign in to do that
Don't have an account?
geis6
Help with SOQL code please
I'm trying to perform a data dump of Case data for further crunchin in Excel, my users have no use for "OwnerId" and would prefer the actual name of the primary owner. I thought I could do this witha relationship query, but I can't seem to get it to work. Salesforce Support tells me that getting the Name of the Primary owner while Querying the Case object is not possible, I'm not sure I belive the first line support rep that told me this.
Does anyone have any experience doing something like this? Can someone help me out with my code? I see in Apex Explorer that Case is a child of the user object.
Does anyone have any experience doing something like this? Can someone help me out with my code? I see in Apex Explorer that Case is a child of the user object.
Select Id, CaseNumber, CreatedDate, Account.Name, Account.Industry, Contact.Name, Product__c, Component__c, Sub_Component__c, Status, OwnerId, Request_Type__c, Incident_Priority__c, Version__c, Origin, Root_Cause__c, ESC_Status__c, Integration_Type__c, Zone_Type__c, Actual_First_Response__c, ClosedDate, TT_Number__c, Subject FROM Case WHERE RecordTypeId = '012700000009NR5'
Cheers,
Ward
Cheers,
Ward
Thanks for the info Simon.
Anyone know of any way to run a query as a scheduled task for CSV output besides running data-loader at the command line?
Cheers,
Ward
I just tested in Data Loader 12 and the following query should get you the results you are looking for.
SELECT CaseNumber, Owner.Name FROM Case
Note that the Data Loader is case sensitive and owner.name and Owner.Name will return different results.