12-26-2023 03:52 PM
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
12-27-2023 10:40 AM
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
12-28-2023 06:07 AM - edited 12-28-2023 07:49 AM
Hello,
Make sure you've added your expression library to the pipeline,
and then access 'sourceFilePath' with:
lib.<expression library name>[0].sourceFilePath or lib.<expression library name>[0].targetFilePath
Personally I like to organise by SBX, DEV, UAT, PRD and even perhaps the org.
Hope it helps!