Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Sending views as email in workflow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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
    RaviKashyap 55,410 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans