Skip to main content
14-Alexandrite
June 23, 2023
Question

How to update the file content for a file that is already present in a file repository

  • June 23, 2023
  • 1 reply
  • 1476 views

i've a file in repository in which i need to remove some lines and add new line the deleted line.

 

i've got the text inside the file using loadText snnippet. Now it need to change some text inside the file. 

 

How we can achieve this.

 

Thanks in Advance!

 

Regards,

Keerthivarman

 

1 reply

22-Sapphire I
June 23, 2023

Check and see what services are available in the FileRepository Thing.

I forget if it has an 'update' I think you might only be able to 'append'

If that's the case, you may have to delete original and save the new.

14-Alexandrite
June 27, 2023

Hi,

 

yes i've checked that there is a append snippet in the repository thing, but i need to remove some line from that.

 

is it possible to do that?

 

thanks

keerthi 

Community Manager
July 10, 2023

Hi @Keerthivarman.

 

As Pai mentioned, you may need to delete then re-publish.  There is a DeleteFile service available. 

 

Regards.

 

--Sharon