web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

How to attach notes to a custom workflow in Dynamics 365

(0) ShareShare
ReportReport
Posted on by 84

I have a scenario where by I have a workflow from a case entity  that sends out an email with details regarding the case in the form of a template called red alert to internal users using a distribution list ( this is an office 365 group distribution list ) from within Dynamics 365 and that works perfectly .

On this case entity I can add notes so I can also attach pictures to the note. I need when the Workflow sends the email to the distribution list it should also send the pictures attached on the notes entity .

I know it now has to be a custom workflow ,I have written the code and registered the plug in but Iam not sure which are are the correct steps to add in this workflow  to work properly just adding to what I currently have 

Current-workflow-with-a-template-included.PNG

When I try set the properties regardless i have created a new work flow the part for attachment is blank not sure what Iam doing wrong 

How-to-set-the-email-attachments-to-attach-the-notes-.png

Also Iam not sure if my code is correct I want to attach notes from the case entity to the workflow so that when it sends the workflow the notes that will have pictures attached must be part of the email .

[View:/cfs-file/__key/communityserver-discussions-components-files/761/I-want-to-attach-notes-to-case-Entity-and-send-them-using-workflow.txt]

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Annotation entity contains not only attachments but text notes without the file as well (and I believe this is what generate blank attachments for you). In order to filter out that data add following condition to your query:

    _QueryNotes.Criteria.AddCondition(new ConditionExpression("isdocument", ConditionOperator.Equal, true));

  • rodzmaz81 Profile Picture
    84 on at

    Let me add that my part to the query and let you know

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 41

#2
Martin Dráb Profile Picture

Martin Dráb 36 Most Valuable Professional

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans