Jorge Paulo

Using and Extending the Activity Template feature (Post 3 of 3)

Blog Post created by Jorge Paulo Employee on Jan 11, 2020



This is the 3rd post of the series where we explored the flexibility and potential of the extensibility of ACRM.


On the previous posts we went through the basic usage of the Activity Templates and tailored it to specific needs:


In this post we will implement the remaining requirement:

3. The name and email signature of the user must be added to the activity text with the following format


Company Name

FirstName LastName

Job Title

Important: The changes described in this post should not be applied directly to a production system, especially the changes involving the Data Model and CRM.designer configurations. Careful testing should be performed to eliminate the possibility of human error following the instructions or unexpected interactions with pre-existing customizations.


Rep Signature

By default, the Signature of a user can be defined in the Rep(ID) info area.

In the ISI template for the BTB vertical, the field 107(Plain Text) and 5006(HTML) are used.


Automatic Creation of the Signature

Our requirements call for a simple but consistent signature across all users.

A good way to obtain consistency is by automating the creation of the signature.


The required signature has 3 components obtained from 3 different info areas as follows:

ComponentInfo Area
Company NameCompany (FI)
First Name, Last NameRep (ID)
Job TitleContact Person (CP)


Trigger CU_ID_Create_Signature

Let's define a Trigger that gathers the information from the different info areas and combines them into the complete HTML formatted signature.

To embed the data within HTML tags we will use Regular Expressions.

FieldFunctionField ContentsReference FunctionVariableDirect ReferenceReference
SignatureAppendt,(.*),'<br>--<br><b>$1</b>',,,1,;,,Regular ExpressionRep > Company > Company
SignatureAppend<br>First Name
SignatureAppend(space character)Last Name
Signaturet,(.*),'<br><i>$1</i>',,,1,;,,Regular ExpressionRep > Contact Person > Job Title


After the Trigger is configured in the relevant Rights format the Signature is added whenever a Rep is created or modified.

The signature can be previewed Using the Rep Maintenance pages of CRM.web.


Trigger CU_MA_Append_Signature

Now that we have a consistent signature automatically created for every user, let's use it the activities.

To keep the signature handling independent of the rest of the activity creation automation, we will create a new trigger.

FieldFunctionField ContentsReference
TextAppendActivity > Rep > Signature


For the trigger to run it needs to be added to the relevant Rights Format. We will add it before the trigger CU_MA_Append_Disclaimer created in the 2nd blog post of this series.

As was our final goal, following the creation of an activity both the signature and disclaimer are appended to the text.



This post concludes the series. We hope the content is informative and can provide inspiration on how simple changes to ACRM can express the particular business logic and culture of your organization.

We welcome you to comment and discuss this and other topics in the ACRM space of AureaWorks.