Forum Discussion
With these settings, can you write a file to the existing directory?
If yes, may be check with your admin if you’ve rights to create a directory in that location.
The settings look good to me as I’ve been able to create directories with the same.
I did connect to the ftp server with the same credentials ,and tried creating a folder manually…I was able to create…Dont know why through snaplogic I am not able to create with same credentials
- mohamadelmardin7 years agoNew Contributor III
First you have to use the out-of-box XML parser snap and configuring it should be easy as described in SnapLogic documentation. Then the hard part begins after the incoming XML input parsed into JSON is to navigate through the nested structure and map any array or non-existing elements. The best way to do that is to use a series of Mapper snaps and in each mapper you have to use expression language statements which is a subset of JavaScript. To read more about expression language please check the following link:
https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1438042/Expression+Language+OverviewFor example to cast an parsed XML element in JSON into an array type you would use the following expression: [].concat[ element ]
Please refer also to the beginning of this thread for other examples.
Related Content
- 6 months ago
- 11 months ago
- 2 years ago
- 4 years ago