cancel
Showing results for 
Search instead for 
Did you mean: 

$ in impex password field

Former Member
0 Kudos

Hi guys, again one about impex syntax, I´m trying to set a fixed password via impex that has $ character, the password is

XXX$2018

but Impex treat the $ as a variable, so I tried with single cuote and bouble quotes but the field in hybris was stored with it , I did not found how I can escape the $ character, any help will be appreciated.

 $xxxxPassword="XXX$2018"
 INSERT_UPDATE OrderSFTPDetails;active;distributor[unique=true];indirectIntegrationType(code)[unique=true];password;port;sapSource(uid)[unique=true];serverAddress;sourcePath;store(uid)[unique=true];user
 ;true;xxxxx;xxxx;$xxxxPassword;xxx;xxx;xxxx.xxxx.xxx;/xxxx/xxxx/xxxxx;xxxx;xxx

Accepted Solutions (1)

Accepted Solutions (1)

andyfletcher
Active Contributor
0 Kudos

I'm not sure I understand the problem. It only gets treated as macro if it is defined.

I.e. this imports my name as An$dy

 INSERT_UPDATE Customer;uid[unique=true];name
 ;andytest;An$dy

this imports it as Anfoo

 $dy=foo
 INSERT_UPDATE Customer;uid[unique=true];name
 ;andytest;An$dy

I'm assuming that there is nothing special about your password field, i.e. it's just a string type since you haven't shown any translators being used.

Former Member

You were right, I was confused about the impex editor plugin in IntelliJ that marks the $ character even if I don´t have a macro declared. Thanks!

Answers (2)

Answers (2)

VinayKumarS
Active Contributor
0 Kudos

I tried this for userid and password. it worked for me.

 $Vinay=XXX\$2018
 INSERT_UPDATE B2BCustomer;uid[unique=true];name
 ;vinaykumar@gmail.com;$Vinay
 
Former Member
0 Kudos

I tried this, but the field were saved as XXX\$2018. Thank you.

former_member633554
Active Participant
0 Kudos

Does encapsulating it work? ;true;xxxxx;xxxx;'$xxxxPassword';xxx;xxx;xxxx.xxxx.xxx;/xxxx/xxxx/xxxxx;xxxx;xxx

or

;true;xxxxx;xxxx;"$xxxxPassword";xxx;xxx;xxxx.xxxx.xxx;/xxxx/xxxx/xxxxx;xxxx;xxx