if you are looking to create a new type of activity available in our menu like for example "Chase call" you can mimic the existing behavior.
1/ Create a new Activity Notification Chase call with code: CHSCLL
2/ Create notification rules/templates and associate them all together may you have the need. (optional)
3/ Copy the detail_alg.htmpl and rename it to detail_alg_chasecall.htmpl.
4/ Modify it to your needs but make sure that you modify the line below to reflect your activity type:
docWriteln("<input type='hidden' name=SET.alg.type value='CHSCLL'>");
5/ Repeat this operation for the chg and iss object and their respective forms (detail_issalg.htmpl, detail_chgalg.htmpl)
6/ Modify your menubar_sd.htmpl to have a new items to call this activities under the activities menu by modifying the query_str section as below:
var query_str = w.cfgCgi + "?SID=" + w.cfgSID + "+FID=" +
w.fid_generator() + "+FACTORY=" + factory +
"+PERSID=" + w.argPersistentID;
var query_str1 = query_str + "+OP=UPDATE+ACTIVITY_LOG_TYPE=";
var query_str2;
var htmpl_str, alg_edit_htmpl = "";
if ( factory == "chg" ){
alg_edit_htmpl = "+HTMPL=detail_chgalg_edit.htmpl";
alg_edit_chscll = "+HTMPL=detail_chgalg_chasecall.htmpl";
}
else if ( factory == "cr" ){
alg_edit_htmpl = "+HTMPL=detail_alg_edit.htmpl";
alg_edit_chscll = "+HTMPL=detail_alg_chasecall.htmpl";
}
else if ( factory == "iss" ){
alg_edit_htmpl = "+HTMPL=detail_issalg_edit.htmpl";
alg_edit_chscll = "+HTMPL=detail_issalg_chasecall.htmpl";
}
7/ Scroll down the menubar_sd file where you want to place your new menu items and add the below:
<PDM_OBJECT>
<PDM_IF "$env.NX_EDIT_INACTIVE" != "No" || "$args.active" == "1">
<PDM_MACRO name=menuItemLocal label="Chase Call..." function="JavaScript: popupActivityWithURL('\" + query_str1 + \"CHSCLL\" + alg_edit_chscll + \"')">
</PDM_IF>
</PDM_OBJECT>
8/ Repeat operation 6 and 7 for all the different roles using different menubar.
Hope this help.
This way you can crate any new activity type you like but please remember that customization are not supported by CA and may need rework when upgrading to new release.
/J