Skip to main content

Hi #AwesomeAdmins

I need to identify all Salesforce Reports (API Name) where a custom Case field is in use. I am not referring to the data in the custom field. I am focused on 

Reports

 that use the field. I also need the Report of Reports to return the Last Run Date. My goal is to present this to the business to justify why they no longer need the field, if they aren't even reporting on it. If I discover all their reports that have the field have not been run in a long time, that tells me they don't rely on this field anymore. Then I can have a conversation with them about it and provide proof that it is not being relied on. 

Hopefully I have worded this well. Does anyone know of a way to accomplish this? I've found in the Developer Guide an object called Report but I don't see that it allows to filter by Fields on the reports. Thanks in advance. 

#Reports & Dashboards #Dataloader.io

7 respuestas
  1. 10 ago, 15:52

    That’s a useful approach, especially when you need to track field dependencies across a large number of reports. Pulling the report metadata and then searching for the field reference should make it much easier to identify hidden or overlooked dependencies. The MetadataTooling API route also seems more reliable than checking reports manually one by one.

0/9000

Hi, 

@Johnathan Caballero 

I intend to use the Salesforce Data Loader version 66.0.0 via the command line, and I think I have set everything up correctly to bypass username and password, since my jobs should run in the background without any human interaction. 

 

What have I configured? 

1. Created a new External Client Apps for Salesforce Data Loader

Data Loader via Command Line OAuth and Username Password issue

2. Copied the Consumer Key and pasted it into the Data Loader settings 

 

image.png

 

3. Configured the process-conf file 

 

image.png

Comments to the process-conf.xml file 

A: Executed for my testing in Partial Sandbox 

B: Intended for Production 

C: According to the documentation Password and Key is not needed when using the OAuth (

https://developer.salesforce.com/docs/atlas.en-us.dataLoader.meta/dataLoader/command_line_create_config_file.htm

 

4: Created at batch to run start the process-conf 

 

image.png

 

What I would expect based on my settings is that my batch "RunExportDKContactAll" would login to Salesforce automatically based on the OAuth and consumer key, without the need for any human interaction. 

What actually happens is that I am asked to enter my Username and Password the first time I am running the batch job 

 

image.png

 

image.png

 

hereafter the job is executed as expected. If I afterwards (without first closing the browser) run the job or another job again it will automatically open the browser and say Authorization Sucessfully, but as soon as I close all browser tabs I have to fill in username and password again. 

I have tested also tried the same testing removing A, B, and C from the process-conf file, and the result is still the same. 

 

Any feedback is appriciated - what am I missing ensure the command line execution can run without any issues? 

 

Regards, 

Henrik

8 respuestas
  1. 15 jun, 23:39

    Data Loader CLI support for OAuth Web Server Flow is for interactive usse. 

     

    For headless use you need to configure Data Loader CLI to use password authentication (specifying the username / password).  We plan to add support for the OAuth JWT Bearer Flow later this year as the replacement for password authentication (due to SOAP API login() retirement).

0/9000

Hi folks! Has anyone used the data loader app in a sandbox environment? For years, I have use what I thought was the only data loader application available to SF, the installed desktop application. Then last week my client showed me how they installed data loader from the Appexchange directly into production and now it is an app in their production environment. Although the functionality is the same, I will admit the UI is much nicer and they prefer it. The problem is I can see no way to install it into their PC sandbox and they want to be able to test data loads with it. Has any one been able to use this in their sandbox environment and, if so, how? Screenshot of the app in production 

Data Loader app in sandbox

 

for reference. 

4 respuestas
0/9000

I need to move a lot of records from one org to another.  Normally, I export the records from the source org with Data Loader, then insert them into the target org with Data Loader.  This involves starting with the Users, then the Acounts, but you have to use Excel/Xlookup to update the User ID's on the Accounts with the new ID's.  Then I insert the Contacts, after I use Excel/Xlookup to update the User ID's and Account ID's.  This takes a lot of time, and there's a decent chance of making an error.  I found a SF video explaining how to use an External ID field to upsert records.  I created a new External ID Account field called "Old_AccountID__c" and added that field to the Account file and copied the old Account ID to the column.  I created a new External ID Contact field called "Old_AccountID__c" and added that field to the Contact file.  Then I copied the old Account ID to that field.  I tried upserting the Contact file with Data Loader and using that field as the external ID reference, but it didn't work, I just got errors.   

Is there a way to do what I'm trying with Data Loader?  Am I missing a step? 

Thanks 

@Data Loader

3 respuestas
  1. 9 feb, 19:08

    Hey @Colin Ong-Dean that sounds really interesting.  I've used Power Query before, but only to alter data in the spreadsheet.  I never thought to use it like this.  Thanks.

0/9000

I tried to run this SOQL in Data Loader and got the error no nested queries. 

 

SELECT Name, ID, (SELECT ID.Name FROM Notes WHERE FileExtension = 'gif') FROM Account 

 

I am looking for the IDs of all GIFs that are attachments on Accounts. 

I don't have to do this in Data Loader. I can use any tool to get this done. Any suggestions welcome.  

 

PS Just figured out nested queries aren't allowed in Workbench either. 

PSS You also can't use a SF report to create a report of Notes created via "Notes & Attachments" related list. 

PSS to reiterate. I am looking for the Attachments on the Account Related List Notes & Attachments where image has gif file type.

 

@Admin Addicts  @* Sales Cloud - Best Practices *  @Formulas - Help, Tips and Tricks  @* Salesforce Developers * #Salesforce Developer #Sales Cloud #Data Management #Sales Cloud

5 respuestas
0/9000

Trying to insert about 50 records into the opportunity object within a sandbox using data loader and receiving the above error. I've made sure that this field contained active user IDs and then modified all the records to have my user ID listed under this field, but to no avail.  Any idea what I should be checking to get past this to successfully insert? ##Dataloader

7 respuestas
  1. 23 dic 2024, 06:06

    I know this is an old thread but wanted to share how I got through this issue as well in case it helps anyone. 

     

    The ultimate root cause was that there were a couple of flows that were updating the Account with the Owner ID - but since the Contact records in question were owned by inactive users >>> that was causing the invalid OwnerId error on dataload. 

     

    So I turned those off, did the dataload and turned them back on and it worked. 

0/9000

Got this error on a dataload to Contact object for part of the file. Added 18-digit owner ID. Account ID also on file. Reloaded only the errors. Got the same error on all records:  | Owner ID: owner cannot be blank. I'm using v61, I could download the new version, but I've done 5 dataloads to the contact over the last 48 hours with no problem. I even cut and pasted the data into a new excel workbook then saved as csv.

Any thoughts?

3 respuestas
0/9000

Hello awesome admins,

I am trying to use data loader to identify profiles (not permission sets) that have view or edit access to a field. This is my data loader query so far:

SELECT Field, Id, ParentId, PermissionsEdit, PermissionsRead

FROM FieldPermissions

WHERE

    SobjectType = 'Opportunity'

    AND Field = 'Opportunity.Special__c'

    AND (PermissionsEdit = True

    OR PermissionsRead = true)

 

I would like the export to include the Profile Name. Also, my goal is to use the export to then update some of the Profiles so that PermissionsEdit and PermissionsRead = False.

1. How do I include Profile Name in my query?

2. When I do the Update, which object should I be updating... is it the FieldPermissions object again?

Thank you!

#AwesomeAdmins #Dataloader #SOQL Queries

2 respuestas
0/9000
0/9000
0/9000