forcedotcom / dataloader

Salesforce Data Loader
BSD 3-Clause "New" or "Revised" License
480 stars 294 forks source link

How do I export the rich text area data type field in Salesforce without an HTML tag by the data loader? How can I get the API of the field in the header in small letters?  #1155

Closed chimpanzee818 closed 4 months ago

chimpanzee818 commented 4 months ago

Hi @ashitsalesforce

hope you are doing well!

Can you please help me? I have two queries with DataLoder. 

  1. How do I export the rich text area data type field in Salesforce without an HTML tag by the data loader?
  2. How can I get the API of the field in the header in small letters too? When we export the data, the header of the CSV is "PRODUCT_COSTC,"  but I want Product_Cost__c" (the actual API of Product_Costc).
ashitsalesforce commented 4 months ago

Hi @chimpanzee818 ,

Regarding 2, data loader 61.0.0 uses the names specified in select clause of SOQL as-is. Here is an example:

SELECT CuStOmDateTiMe__c, Id, RTA__c FROM Account 

outputs query results in a csv file with the following headers:

"CuStOmDateTiMe__c","Id","RTA__c"

Regarding 1, Data Loader currently does not pos-process Rich Text Area fields to remove HTML tags. Does your text contain HTML tags or HTML character entities or both?

chimpanzee818 commented 4 months ago

@ashitsalesforce

thanks, It's kind of both. any alternative way we can do here!

ashitsalesforce commented 4 months ago

Here are a few possible solutions an online search of the term "utility to remove html tags from a string in a csv file" results in:

There may be others. You will have to experiment and settle for the one that works the best for your requirements.

ashitsalesforce commented 4 months ago

Hi @chimpanzee818 , submit your feature request for exporting rich text area field without HTML tags and character entities on IdeaExchange. Doing so will help prioritize it among the backlog of feature requests. Closing this issue as point 2 is resolved.

chimpanzee818 commented 4 months ago

Hi @ashitsalesforce ok I will do it! thanks for your help once gain.