TCS Tools: How to create code expressions without actually writing a plugin

By | April 30, 2017

A few years ago, I developed some code for Dynamics, and, then, just put it aside since I was not able to really figure out what to do with it. However, while I was putting together TCS Tools solution in the last few weeks, it occurred to me that I could probably include that code, too.

The idea there is very simple – what if we could write C#-like expressions/code without having to develop plugins? Problem is, the implementation is not, really, 100% there (and, probably, is never going to get that far), but, then, it does allow some interesting things.

Let’s start with an example – here is a code expression which is configured to run on the “create” of account record:

Let’s see how it works – first, I’ll be creating an account:

 

According to the expression above, what’s going to happen when I hit “save” button is:

  • The expression will check if main phone has been populated
  • It will recognize that the phone number is there, so it will add that phone # to the account name

Here, I just clicked “save”:

 

That was easy – it worked. It’ll be more complicated to clearly explain how far you can take it:)

This post will introduce you to the basic syntax

4 thoughts on “TCS Tools: How to create code expressions without actually writing a plugin

    1. Alex Shlega Post author

      Hi Danylo,

      yes, it does. Actually, it’s not client-side “code” – whatever expressions you create will run on the server.

      Reply
  1. gabriel

    Hi Alex , I have several customers woking on 2011 CRM version . Have you in mind to explore an TCS tools revision for that CRM versión ??
    Regards & thanks

    Reply
    1. Alex Shlega Post author

      Hi Gabriel, was not planning to do it, really.. Still thinking of moving it to GitHub (in which case you could download the sources and rebuild), but not sure it’s worth it either..

      Reply

Leave a Reply to gabriel Cancel reply

Your email address will not be published. Required fields are marked *