Pass Bucket Name dynamically for AWS S3 API to store files
Can someone shed some light on the below pertaining to the repository API's.
There is an requirement where we need to store all attachments from Pega Cloud for a case type called 'Order' to Amazon S3 buckets for which we have built a repository connection using the OOTB and could upload and download the files from one bucket that is provided in the repository rule form.
But per our requirement, i need to pass the bucket name dynamically like bucket1 or bucket2 or bucket3 and store data as needed.
Can you please suggest on how to parameterize the bucket name on the repository rule form so that based on some criteria i can use bucket1 and for some others belonging to the same case type/application use bucket2. Please note that we have only 1 application and amazon S3 repository is configured there, need help on dynamically pass the bucket name may be via a DSS or a data page attribute. Thanks in Advance
***Edited by Moderator Marije to add Capability tags***