Hi all,
I need a workflow that sends an email with the entity attached file/s when some state changes.
I'm thinking in programming a plugin, but I don't know how to access the attached files of an entity.
Any one has an example ??
Thanks in advance,
Mariano Minoli
Spain
*This post is locked for comments
Hi Mariano,
You can build a plug-in component that retrieves a file attachment from an CRM record on state change event.
Keep in mind that attached files are related to entity annotations (notes) and not directly to the entity itself. An entity can have many annotations and therefor many attachments.
Your solution should first query the records annotations for the requested attached file by the annotation attributes, file name or size and then use the documentbody property of the Annotation class to access the contents of the note's attachment.
Check the Annotation Class reference in the SDK for information and examples.
Hope this helps,
Yaniv Arditi
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156