Closed
Update a file using Repository APIs | Connect-File Replacement
Is there a way we can append a new row to a text file, already created and existing in a repository, by using Pega Repository APIs?
***Edited by Moderator Marije to add Capability tags***
To see attachments, please log in.
@Dulshanka Yes, you can append a new row to a text file in a repository using Pega Repository APIs. First, use the Get file API (D_pxGetFile) to retrieve the existing file content. Then, modify the content by appending the new row. Finally, use the Create file API (D_pxNewFile) to overwrite the existing file with the updated content. Remember to specify the same repositoryName and filePath as the original file when using the Create file API.
Repository APIs