locked
Sending email to the team members RRS feed

  • Question

  • Hi All,

    I want sample code to send email to the users who are assigned to the particular opportunity and check whether the user belongs to the sales team or not , if it belongs to sales team the send email to the user otherwise no.

    This should trigger Whenever the opportunity is moving from one stage to another and when opportunity is closed as WON.

    Please give me the code ,

    Tuesday, August 12, 2014 10:19 AM

All replies

  • Hi,

    You can write a custom workflow to implement your requirement, you can configure your workflow to run on status changes, for sample code check


    Our Website| Our Blog | Follow US | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    Tuesday, August 12, 2014 10:58 AM
    Moderator
  • How to trigger a plugin for the opportunity when the stage is changing ?

    Thursday, August 14, 2014 5:31 AM
  • Hi,

    Can you Write  A custom workflow with Boolean out put parameter,  And write code as the assign user is belong to sales team or not check and return to out parameter, based on the result can you send the email or not.

    The whole work flow will fire in state change


    Thursday, August 14, 2014 8:22 AM