on 06-07-2018 7:44 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.