Ok thanks all, i've figured out the correct way to do this. In our scenario, the standard description field is hidden on Project, but not hidden on project template, so I was wondering how project template description flow to MA. In fact, the standard description field on project is holding project template dscription all the time though hidden. I am able to empty that field either through Project Validated script or Project Duplicated script. In this way, when creating MA from project, MA carries over empty description from project, this is what we want. Thanks guys for your help.
My question still valid: doc.setDocumentDescription("") or doc.setDisplayName("") don't work on MA created or MA duplicated when creating MA from a project. How can we get this to work? We also have requirement that
When creating MA from project, MA should not automatically carry over Project Name. If doc.setDisplayName("") don't work on MA created or MA duplicated when creating MA from project, how can i achieve this?