_copyThing
Copy an existing Thing --
Function
Thing Type -> _copyThing -> Thing Type
- Receives -- Thing Type
- The Thing to copy
- Produces
- The newly-copied Thing.
Occasionally, you want to duplicate an existing Thing. This lets you do exactly that:
it receives a Thing, and produces a copy of it.
This may take any number of property-setter parameters, the same as in _createThing
. These
will override the copied parameters from the original Thing.
Note that Link Name
must be unique, so if you try to simply copy something that has a Link Name
,
it is likely to fail. In this case, you should set the Link Name
in the operation:
_copyThing(Link Name(""New Thing Link Name""))
If you feed a List into _copyThing
, it will copy all of them. This is dangerous, so please
don't abuse it!
Note that this will copy the Display Name of the original Thing if there was one, so you will
often want to feed this into a call to _edit
, to fix up those details.