Home > Forum > Plugins > SDK Action

SDK Action
2

MVP

Hi,

if you are creating a Custom Action and you want to access the attachments of the same instance this would be the simplest method:
args.Context.CurrentDocument.Attachments.

Examples:
https://github.com/WEBCON-BPS/BPSExt-Signing-DocuSign/blob/5784cf2a66e946bf8a093c3f386b0b27cb0566d6/WebCon.BpsExt.Signing.DocuSign/CustomActions/Helpers/DataHelper.cs#L56

https://github.com/cosmoconsult/webconbps/blob/c65601d8dc815feacf351e3d2ba68c3aa1d96e2c/SDK_Actions/CC_XmlToItemList/CC_XmlToItemList/XMLtoItemList.cs#L114

Best regards,
Daniel