Question

Can we set File Listener path dynamically ?

Hi i have a requirement to set file listener path dynamically ,if any one has idea about this ,could you please help me on this?

***Edited by Moderator: Pallavi to update platform capability tags***

Correct Answer
December 28, 2018 - 4:55am

We can do it in 2 ways

1. Using the extension datapage (DCR) - D_AppExtension

  1.    Create a property and set the value of the SourceFolder and use this as a reference

2. DSS rule ( we can specify the path of the folder if it is cloud repository )

file://pegacloudrepository:/stg1 etc.

Comments

Keep up to date on this post and subscribe to comments

December 28, 2018 - 3:33am

Hello,

Yes you should be able to according to the help file:

Source location Identify a directory in which the listener looks for input files. Listener requests require read and write access to this directory.

This field supports the Global Resource Settings syntax (= PageName.PropertyName ). The default property name for this field is pySourceLocation. For more information, see Using the Global Resource Settings feature.

 

December 28, 2018 - 10:17pm
Response to MarcLasserre_GCS

Thank u MarcLasserre_GCS 

i will try this and let u know

Pega
December 28, 2018 - 4:55am

We can do it in 2 ways

1. Using the extension datapage (DCR) - D_AppExtension

  1.    Create a property and set the value of the SourceFolder and use this as a reference

2. DSS rule ( we can specify the path of the folder if it is cloud repository )

file://pegacloudrepository:/stg1 etc.

December 28, 2018 - 10:18pm
Response to badun

Thank u badun ,i will try this approach and will let u know