SaveAnnotationIdTo property
Home –> Reference –> Parent Shape –> Save Annotation Id To
Set the name of the process variable that will hold the ID of the attachment that is going to be created. The process variable can then be used elsewhere in the process.