cancel
Showing results for 
Search instead for 
Did you mean: 

Renaming CSV header in CPI

das_sappo
Participant
0 Kudos

Dear Experts,

Could you please suggest how can I rename the headers of the CSV without Content Modifier?

Source

Name,Address,Region,Language

Target

"Emp Name","EMP-Address","Emp Region","Emp-Language"

Br,

Arvik

Ryan-Crosby
Active Contributor
0 Kudos

Rename the headers without an explicit step to do so? If so, then the source data would need to be modified from the sender side.

das_sappo
Participant
0 Kudos

Thanks Ryan.

That means there is no way to rename the CSV headers with out Content Modifier Step ?

View Entire Topic
karthikarjun
Active Contributor
0 Kudos

HI Arvik - Will this help

body=body.replace("Name,Address,Region,Language","Emp Name","EMP-Address","Emp Region","Emp-Language");
resham_naaz
Explorer
0 Kudos

Hi karthikarjun

This does not seem to work. I just tried it and it is giving error : No signature of method: java.lang.String.replace() is applicable for argument types: (java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String) values