Duplicate Record including Portal Records
Hi all, I'm working on a script found on another thread to duplicate a record and include a portal list of contacts on that layout. Attached is what I have so far.
It works fine the first time you use it. However, when you duplicate the new duplicate, you get the portal records doubling up, then tripling up if you duplicate that new duplicate, and so on.
Any ideas how to correct this?