Keep in mind that the community extension for clipboard isn’t something part of the engine, so support is limited. However, I don’t believe the GetID Command returns a string. try to store it in a variable first then pass that to the clipboard
Modify the text of scene variable "yourID": Set to ToString(P2P::GetID())
Write VariableString(yourID) to clipboard
Read clipboard and store text in blah
However if you’re getting the user’s current Id, you don’t really need the extra steps, and it probably just be
Write ToString(P2P:GetID()) to clipboard
I’m not sure your VariableString(id) is needed for this event, but you’d understand your events more than I do.