Error: You Must specify a valid Context Record ID when creating an extension on Individual Alias Add Form

If you try to create an extension to the Individual Alias Add Form by the following sample it will load fine but when you try to use it you will get the error :

You Must specify a valid Context Record ID when creating an extension on Individual Alias Add Form
 
To fix this, the out of the box should be changed to the following:

In the stored procedure USP_DATAFORMTEMPLATE_ADD_INDIVIDUALALIAS the word output is missing and hence does not allow the ID to be passed back to the form so that an extension could be added.
 
exec USP_ADD_INDIVIDUAL_ALIAS @ID output,
@CHANGEAGENTID,
@CONSTITUENTID,
@ALIASTYPECODEID,
@KEYNAME,
@FIRSTNAME,
@MIDDLENAME,
@TITLECODEID,
@TITLE2CODEID,
@SUFFIXCODEID,
@SUFFIX2CODEID,
@IGNOREDUPLICATE;

Environment

 Chrome;Firefox;Internet Explorer
 SQL Server 2012
 Blackbaud CRM
 4.0

Was this article helpful?