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

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Sending views as email in workflow

    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,760 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans