If you work with Visual Studio then you will be interested to know that an updated library of revised and new snippets has been added to the General Development Resources folder that is available to all partners within the community.  This is a resource that will prove very useful for you when customising the Sales, Marketing and Customer Service modules of Sage CRM.  

This download contains 243 snippet files for use within Visual Studio 2015. The snippets have been revised for Sage CRM 2017 R1. Several minor defects in the examples have been address and a new set of JavaScript snippets that demonstrate techniques for use with the Self Service API has been included.

These code snippets will also be installed, along with the example projects and templates, as part of the SDK for Sage CRM 2017. Partners who are not members of the Developer Program can still use these snippets that have been created by manually adding them to their Visual Studio environment.

These snippets were created and edited under Visual Studio 2015 Community edition.

Theses snippets are compatible with all currently supported versions of Sage CRM.

To manually install the snippet files copy the Zip file to your Visual Studio Code Snippets folder e.g.

C:\Documents and Settings\[username]\My Documents\Visual Studio 2015\Code Snippets\

Then extract the files. Make sure the destination path used is Code Snippets.

When the snippets are extracted then the files are copied into the standard location for custom snippets. If you have existing snippets within 'My Code Snippets' then these will not be effected. If you have existing Sage CRM code snippets then you will be asked whether you wish to overwrite the files.

The Zip file contains 243 files within 3 main subfolders.

Code Snippets\JavaScript\My Code Snippets

  • JavaScript
  • Visual C#
  • Visual Web Developer

JavaScript

Underneath JavaScript folder the files will be copied into the path

C:\Users\[username]\Documents\Visual Studio 2015\Code Snippets\JavaScript\My Code Snippets\SageCRM

Where there will be 4 folders created.

  • ASP - 77 snippets
  • Client Side - 42 snippets
  • Mail Manager - 6 snippets
  • SelfService - 6 snippets

The SelfService snippets are new in Sage CRM 2017.

Visual C# Snippets

Underneath Visual C# folder the files will be copied into the path

C:\Users\[username]\Documents\Visual Studio 2015\Code Snippets\Visual C#\My Code Snippets

Where there will be 4 folders created.

  • Sage CRM 7 DOTNET Snippets - 54 snippets
  • Sage CRM 7 Web Service Snippets - 24 snippets

Visual Web Developer

Underneath Visual Web Developer folder the files will be copied into the path

C:\Users\[username]\Documents\Visual Studio 2015\Code Snippets\Visual Web Developer\My HTML Snippets\SageCRM

Once the snippets have been unzipped they will be available in Visual Studio and accessible like any code snippet.