• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 707
  • Last Modified:

CRM 3 - workflow requiring a callout?

Hi Experts,

I would like to accomplish something that you would think was fairly simple:

I would like the complete workflow rule and/or callout (if required in C# hopefully) to complete the following issue.

Issue:
That each activity or task (in my case) sends out an email alert to the case.<owner> after the status of the activity or task is = completed.

In the workflow manager it is easy enough to set a rule up to send an email to the owner of the activity although in  my case the person who opens a case might have many different tasks under it assigned to different people.  And instead of just opening there case to see what tasks have been completed the want an email to be sent everytime a task within the case is completed.

Thanks for your help in advance.
0
Joesmail
Asked:
Joesmail
  • 2
1 Solution
 
Biffster007Commented:
Hi,

So what's the problem here???

I would do this by using a PostSetState callout on the Task entity.  By using the RegardingObjectId field in the Task you can retrieve the case and get the Owner value from there.  Then you would create an Email activity record and send it to the retrieved owner.

Make sense??

Cheers,
MH
0
 
JoesmailAuthor Commented:
Hi MH,
I found an article based on the PostSetState Method.  I am very new to CRM although I have coding experience with C# .NET.  I have the book "Working with Microsoft Dynamics CRM 3.0" which contains some minimal info on calling assemblies in a workflow.

http://msdn2.microsoft.com/en-us/library/aa613526.aspx

If you could just provide me with some more guidance I would appreciate it.  

Cheers,
Joe

0
 
JoesmailAuthor Commented:
Hi MH,

The RegardingObjectId field in the task entity looks like the go.  Do you know any links you can suggest regarding writing some code using the task entity?
0
 
rfgkevCommented:
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now