Is there a way to add unique identifier to inserted text in doc in google apps script?

36 views Asked by At

I am inserting a text in the active cursor position every time a user click the button however, I want to tag a unique identifier in the the inserted text so that later on when I get all the inserted texts I can differentiate them from each other.

1

There are 1 answers

1
Vasilis Tsirkinidis On

You could try generating UUIDs for each one generated utilizing the uuid npm module: https://www.npmjs.com/package/uuid