![]() Var recCaseRecord = CRM. I also encountered some unusual behaviour with dates such asīelow is my code where i am trying to retrieve a date and then assign it to a different field: Example: < DOCTYPE html > < html > < body > < script > var date new Date('21:00:10') document.![]() However, passing a date value in text or integer format to the equation above doesn't work. There is also an area in my code where i have to get the current date and time which i can get with no problems by following Jeff's article here Also the activity panes on accounts and contacts can be changed to order on the Sort Date instead of the Modified On date.Īdd the plug-in and all the required steps to the solution and you’re good to go.When creating a custom table script (Trigger) I cant retrieve a date value. Now the plug-in is working correctly according to the requirements, the attribute Sort Date can be configured in the other views. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more. When the activities are marked as complete the Sort Date will be the same as the column Actual End. W3Schools offers free online tutorials, references and exercises in all the major languages of the web. So start creating an appointment, task or phonecall but do not Mark it as complete yet.Īs u can see in the image below the column Sort Date is equal to the column Due Date. At first we want the value of the Sort Date to be the same as the value of Due Date. Now that all required steps are registered u can start testing the plugin. While creating the update steps set the Event Pipeline Stage of Execution to PreOperation and Execution Mode to Synchronous. Once u have build the CRM plug-in, register it in CRM with the steps below using the PluginRegistration tool. I kept the code simple, without the use of the preImage attributes and handling them. This is my version of the plugin written in C#.ĭon’t shoot me on this piece of code. Now it’s time to write the plug-in based on the requirements I described above. When the field is included use the button Configure Sorting and set the picklist Sort By to Sort Date and the option Descending. Step 2 Add the field Sortdate to the view(s).Īdd the attribute Sort Date by clicking on the button Add Columns. In my case I added the field to the system views named All activities and Closed Activities. Once u have created a new solution add the entity named Activity and select the views which u want to add the field Sort Date to. In this blog I will show u how to do this with a simple plug-in written in C#. The only consistent solution for this requirement is to write a plug-in. Completing them by using the button Mark as completed and activities created, updated by the Outlook client will not populate the field sortdate.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |