I'm intiating the Docgen package from Opportunity, and added "Insert-Update" function to the pacakge.
I'm inserting a record in custom object (Documents) whnever I generate a package, I want to attach the generated document to the custome object record(documents). I check the "attach to this object" in the "insert-update' function I created, but it is attaching the generated document to the opportunity attachment.
My settings were set 'Salesforce
Is there something I'm missing here?