Is there a way to fetch the Resource Path of a Data-Repository instance in an activity as a string.
Yes, you can fetch the resource path of a Data-Repository instance in Pega by using the RepositoryUtils API. In an activity, you can write a Java step and call RepositoryUtils.getRepository(<RepositoryName>) to get the repository instance. Once you have that, use methods like getBasePath() or getStorageURI() depending on what exact path you need. If you just want the path as a string, assign the result to a parameter or clipboard property. Another option is to use the pxStorageURI property from the Data-Repository instance record, which usually stores the repository’s base resource path. You can fetch it with an Obj-Open or DataPage lookup and then refer to pxStorageURI directly. This way you can reuse the path as a string in your activity logic without hardcoding it.
