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 CRM (Archived)

Sending views as email in workflow

(0) ShareShare
ReportReport
Posted on by

Hello guys,

I would like to know if the following is possible:

I have an entity form. Lets call this Contact. There is another entity called Login information.. the contact and login information entities have a 1:n relationship. There is a custom view created for login information which is displayed in the contact form. 

There is an on demand  workflow which is running on the contact entity which after checking some conditions, will send an email. I would like to know if there is any provision available in the CRM which makes it possible for me to send in the email, the login information custom view which is displayed on the contact entity?

Any ideas on implementing this requirement would be great!

Thanks!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    I am assuming you want to send the record present in the Login Information subgrid. If yes, you can achieve this creating a custom workflow activity which first retrieves the data by executing fetchxml (you can download it from advance find) and then add that data in the email body (description) field and then sends that email from the custom workflow activity itself.

    You can use this custom workflow activity in your current On Demand Workflow after your business logic.

    Here are few links about the same-
    Sample: Create Custom Workflow Activity
    msdn.microsoft.com/.../gg334455.aspx

    Execute Fetch XML to return your results
    msdn.microsoft.com/.../gg328117.aspx

    Send an email programmatically
    msdn.microsoft.com/.../hh210217.aspx

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans