Author Archives: greysagecrm

How can you detect the enter key being pressed in any text input field?

Want to trap the Enter key press event and have it click a button for you? Consider the search engine in the standard Sage CRM. Generally we all people use standard find screens for searching the cases, company, person and opportunity records respectively. In the standard search screens, suppose user wants to search all those… Read More: How can you detect the enter key being pressed in… »

EOleException error while executing Procedure

You must have seen this irritating error while executing Stored Procedure from Workflow Action. EOleException: Procedure or function TESTSP has too many arguments specified. Solution: The point is that, when Stored Procedure gets executed from the Workflow action, CRM appends default parameters to the Execute Procedure statement. So we have to declare these parameters at… Read More: EOleException error while executing Procedure »

Create Same Company in another Database

When you create a company in your CRM database and at the same time looking to create the same company in another CRM database, then you can do this by defining below trigger for your source database: CREATE TRIGGER trig_insert_CompanyON [CRMSOURCEDB].[dbo].[Company]FOR INSERTAS DECLARE @Company_Id AS INTEXEC @Company_Id = [CRMDESTDB].dbo.eware_get_identity_id ‘Company’ INSERT [CRMDESTDB].dbo.Company (comp_companyid,comp_name,comp_type)SELECT @Company_Id,comp_name,comp_typeFROM inserted