cancel
Showing results for 
Search instead for 
Did you mean: 

how to Create an expression library file with the given Source Folder Location.

jojig_allot9
New Contributor

Hi Experts,

**Merry Chrismas** Hope all are doing good. I'm pretty new to snaplogic and i have a requirement to read the source folder path to read all the files in that folder, however asked to use expression library file to re-use the source folder path. 

Hene i created filepath.expr with below content:

sourcefilepath = //incoming/files/

and then uploading this file in Pipeline Properties in Pipeline and Expression Libraries. However getting error as incorrect Syntax. Could you all please help me to fix the error or please let me know if i'm using right syntax.

Regards,

Joji

2 REPLIES 2

jojig_allot9
New Contributor

Hi All, 

I have created .expr file and uploaded into Manager under File and call the same into Pipeline properties. However i'm not able to call the .expr file and the path which i have declared in that file using File Direct Browser. Much appreciate any leads?

Regards,

Joji

nativeBasic
New Contributor III

Hello,

Make sure you've added your expression library to the pipeline,

Screenshot 2023-12-28 at 14.03.24.png

and then access 'sourceFilePath' with:

lib.<expression library name>[0].sourceFilePath or lib.<expression library name>[0].targetFilePath

Screenshot 2023-12-28 at 15.46.34.png

Personally I like to organise by SBX, DEV, UAT, PRD and even perhaps the org.

Hope it helps!