CRM 2016 introduces a new feature: Save and Route (an Incident). The new Save & Route button combines the multiple steps required in earlier versions of CRM.
Now I want to perform programatically this action (for an incident also) either in js or in custom activity based on some conditions.
Any pointers to show me how can I do that?
Related
I have a process which triggers when a case is assign, the process send an email to the case owner with the content of the case which also include a dynamic link to the case assigned. I could achieve it in CRM 2011 however I don't see any option to insert dynamic link in CRM 365. Any help on this would be really appreciated.
Using template in workflow does not have this hyperlink option, but direct Email message will have.
Refer this community discussion for the different implementation ideas.
Dynamics CRM OOB does not support adding Record URL (Dynamic) to email template!
There is workaround, by adding a new custom field to the case entity, then create a workflow to fire on case create which updates the new field to be a Record URL (Dynamic), then simply add this field to your email template and attach the email template to your workflow
I need to sync Dynamics CRM marketing list with a mailing agent (Mailjet via API) and I thought I could use Microsoft Flow for this.
The idea is to trigger flow on marketing list update/create that will generate the JSON with list contacts info and send it via HTTP request. The problem is when I use "List Records" action I can't filter contacts based on marketing list id that I get from "When a record is created or updated (Preview)" on Marketing list entity.
I've tested that this trigger is activated when I add a new contact to a list so it should work fine. A better option will be to trigger flow( or workflow? ) within the Dynamics Marketing List view, but I'm not sure if this is possible. Can I run the JS code with the Marketing List input within Dynamics?
Can anyone point me in the right direction? I don't know C# so I'm looking for the solution on JavaScript or PHP.
Thanks!
i think if you want do it with javascript you should add your Javascript to the OnSave Event of the Marketing List or add Javascript on the OnChange Event of the Marketing List Subgrid for Account/Contact/Lead.
Dynamics CRM Events in forms and grids
Then you can get the marketing list members via Javascript and send it somewhere.
You can retrieve marketing list members via webapi, but you must be aware with static and dynamic marketing list.
Getting List members with webapi
Web Api Samples
...and i think this approach would only work for a small number of members.
So this is indeed possible to do in Flow! Thanks to SGeis for the link to Getting List members with webapi. This link uses the entity name of listmembers to store the items inside of a list, and Marketing List is just a special type of list.
In Flow you can specify a custom Entity name. You can enter listmembers for the entity, and as the link showed you can enter _listid_value eq <Marketing List GUID here> in the Filter Query box. Example below:
It will then return a list of objects that are each pointers to a contact record. In the raw json payload the contact guid is called _entityid_value,
or just Entity when used in the Flow Interface:
I'm using Dynamics CRM 2015 (7.0.2.53) and Outlook 2016 (16.0.7766.7080) with the CRM for Outlook (7.1.1.3113) addin.
What I am trying to achieve is to give users the ability to specify an Activity Category against an email which they Track and Set Regarding from Outlook.
Currently, upon tracking and setting regarding on an email in Outlook, an Email Activity is created against the specified Entity record (let's say an Opportunity) in CRM, which is fine. The problem is that I cannot find any way to allow the user to specify an Activity Category for that created Activity either during the Track/Set Regarding process, or even after the Activity is created in CRM.
Is what I'm trying to achieve possible and if not, is there any other way to achieve a similar result, so that users can specify some value from a set of options against an email when they track it from Outlook to CRM, so that value can then be used for reporting purposes?
Basically there is no way of adding some custom functionality to Tracking Emails from Outlook. So you cannot add anything in Outlook plugin that will allow you to perform some operation on CRM side to set the Category right.
You can always make a plugin/workflow on Email creation in CRM and based on some email properties (topic, content, recipients etc.) set this category by youself - but of course users still will be unable to change it.
When email is created in CRM, it's disabled (because it usually already has been sent), but you can still modify it using workflows and dialogs. So you can always create a Dialog (https://msdn.microsoft.com/en-us/library/gg509010.aspx) and there you can prompt for proper category and set it on the email. So I can see a scenario like that - you have a view of Emails that are not categorized (or a Queue, where you put them in a plugin when user is tracking email from outlook). You pick Email, click "Start Dialog" which will be called "Set Category" or whatever, and set the category. Of course after this operation Email will vanish from the view. You can always create a reminder for the users to set the category for their mails, this should be included in new users training etc. Without any hardcore custom coding I think that's the only thing you can do (because if you don't mind writing more complex stuff you can always prepare some custom HTML5 control on Email form that will allow you to set the category field).
Goal:
Show total sum of Activity entities related to Project entity in a form field named Total Activities in Dynamics CRM 365
Following these guys, for our Project entity's form edtior, we've created a normal Whole Number field named Total Activities.
As suggested in the blog, we've Created a workflow process to run on Activity entry entity:
with a name Activity counter:
which will be activated as a process when
Record is created
Record status changes
Record is deleted
We've reached to Step Properties:
The blog says the following:
In the Update Event step, increment the attendee count by 1, and the Total Revenue (Event) field by the Fee field from the Registration record.
We're not able to see that Event step thing anywhere in the process editor.
How to get to the following screen?
Use rollup fields
In Microsoft Dynamics 365, rollup fields are designed to help users obtain insights into data by monitoring key business metrics. A rollup field contains an aggregate value computed over the records related to a specified record, such as open opportunities of an account. Also, you’ll be able to aggregate data from the activities directly related to a record, such as emails and appointments, and activities indirectly related to a record via the Activity Party entity. In more complex scenarios, you can aggregate data over the hierarchy of records. As an administrator or customizer, you can define rollup fields by using the customization tools in the Dynamics 365 Web application, without needing a developer to write code.
The steps you are following are for Real-Time Workflows. You should UNCHECK the "Run this workflow in the background (recommended)" checkbox in order to see the the Update Event Steps. The items in the red square box are the Update Event Steps
I would like to have a field automatically be populated with something I define in a workflow. Currently I have the workflow running upon record creation, however the field is only populated AFTER the user saves the record for the first time.
How can I use a workflow to populate that field before the user saves the form?
You can't. Workflows function on the server-side, but you're asking about populating a client-side field before the server is contacted. Moreover, workflows are triggered asynchronously, which by definition means the record has to be created in advance.
You'll need to either attach a JavaScript function to the OnSave event, or trigger the population of the field in a pre-validation or pre-operation .NET plugin. I suppose you could use a Dialog as well, but that would require user input. See the below links for more detail on the differences between plugins, workflows, and dialogs.
Options: Plugin, Workflow or Dialog
Automate Business Processes in Microsoft Dynamics CRM