Email alert using calculation script in essbase
Hi,
I am doing email alerts using run calculation script.
I have created calculation script as per provided guideline but here I am facing problem.
RUNJAVA com.oracle.essbase.cdf.SetEmailProp "target:target1" "subject:subject_line";
RUNJAVA com.oracle.essbase.cdf.SendMail target:target1: server:smtpservernamel.om
from:emailid.com to:toemailid.com "body:body of test mail";
here instead of target & target1 i m not getting what should i write here.
& it gives me am error like:
Error: 1200456 Problem running [com.oracle.essbase.cdf.SetEmailProp "target:starget1"][Can not find class com.oracle.essbase.cdf.SetEmailProp]
I have created SetEmailProp.java files & also created other files from the provided site.
is their any need to do changes in this file according to requirement?
Could you help me out from this.
Thanks
Edited by: 949936 on Nov 2, 2012 6:17 AM
The Detailed Process is :
I have downloaded CDF_Email .zip here,I got CDF_Email.jar and , SendMail.java,SetEmailProp.Java,AlertFunctions.java classes.Then I have downloaded CDF_export.jar.
After that I have followed all the process that written in document guide (adistrategies.com) from "KB26_Email In Calculation Script".
I placed all these .java files and .jar files in ARBORPATH java folder . here I have created one "udf folder" and put all the files in this folder as per the guideline provided in this document.
About udf.policy I haven't did any changes in this file. could you tell me what is the neccessary changes are required in udf.policy file to achive this task.
Thanks
Similar Messages
-
How to Flip the Sign using Calculation script for historical data
I am currently using Essbase 9.3.1. Its required to flip sign for a specific set of accounts for that i am currently using UDA's to flip the sign.
But now i need to flip the sign for the historical data too. Is there any possible way to flip the sign using calculation scripts for historical data. Kindly let me know your suggestions.
Many thanks in Advance...
Edited by: [email protected] on Jul 30, 2009 9:37 PM
Edited by: [email protected] on Jul 30, 2009 10:58 PM
Edited by: [email protected] on Jul 30, 2009 11:01 PMOf course there is. This is the kind of calc script that only gets run once, so make usre you test it well before doing it on production and make a backup of production before doing it.
It would be something like
Fix(time frame, accounts to be flipped, level zero other dimensions)
actual = actual * -1;
EndFix
Cal dim dimensions
Note, I chose actual, but you could do it for any dimension that has a single or only a couple of members. What ever dimension you choose to do the calculation on, it can't be included in the fix statement -
When we use calculation script and when we use business rule
when we use calculation script and when we use business rule can anyone please tell me
Re the OP's question, here is an excellent introduction to Calculation Manager and business rules. It was the first hit when I googled "calculation manager hyperion".
http://ranzal.wordpress.com/2010/06/11/oracle-hyperion-calc-manager-%E2%80%93-part-1/
You can also go to odtug.com -- the Tech Resources section has a series of presentations on Calculation Manager, from beginner to intermediate.
The added benefit with business rules are that you can use variables and runtime prompts. You can also link planning with business rules and pass information from a web form into a business rules.^^^Only with Planning. There are no runtime prompts with Essbase in 11.1.2.2 but I hear it is coming back in 11.1.2.3
We can use Business Rule for all applications and it is GUI.^^^Doesn't have to be GUI-based. You can (depending on version) flip back and forth between GUI and script. I have not tried writing (nor can I actually think why you would want to do this) a Calc Mgr rule for multiple apps. Maybe you are thinking of a script object that can be called multiple times?
To check whether a calc script is executed or not you have to use the Essbase application database log file (Plan1.LOG)^^^As business rules are, sooner or later, translated to BSO (and hey, ASO too and HFM and Fusion and HPCM and they can differ, a lot, so this is not always true) calc script language, you can always check in the application log to see what is run if Planning or BSO Essbase.
Regards,
Cameron Lackpour -
Email alert when calc scripts are done
Hi - I have Essbase 6.5 and wanted to know how do I setup an email alert when one of my calcs are done running?
ThanksHi CLAU,
we use second method suggested by Glenn.
instead of BLAT we use SendMail
here is the sample batch file which call a maxl script (which can be your calc script) and then emails the log.
hope this helps.
-Dornakal
www.dornakal.blogspot.com
Batch File to call the MaxL Script and send email about status of the
Rem ******************************************************************************
Rem Object Type: Batch File
Rem Object Name: BatchFileName.bat
Rem Script Date: 01-27-2009
Rem Created by: Dornakal
Rem Purpose: This script loads the following data into Cube
Rem Changed By:
Rem Change Date:
Rem Description:
Rem ******************************************************************************
Rem This starts the log file
echo "Start of log" > E:\Logs\Dataload.log
Rem This calls MaxL script to load data
essmsh E:\Scripts\MaxL \DataLoad.mxl >> E:\Logs\Dataload.log
Rem Send mail about the status of the job
sendmail -b E:\Logs\Dataload.log -s "Subject of the mail (data load status)." -f Sendersemail -r Recievers email -r Receiver’s email -X HQSMTP.yourcompany.net -
Help with email alert using email_alertcdf from download
We are attempting to get the email alert function working. We have downloaded the files into their proper locations, ensured the JRE is installed, registered the function, updated the .udf and are attempting to execute a script.The script errors out with an "Unexpected End of File reached" error.Any help is greatly appreciated!
Endperform wrote:Are you looking to keep your email on the server at all times? If so, I suggest looking into setting up IMAP on your home server which will do what you need.
Endperform: yes that is the plan. Do still keep getmail to fetch the pop3 email from my ISP and the setup IMAP so 'forward' onto the Arch client?
Thanks for the reply.
pyther wrote:I'd have to second what endperform said, if you want to keep you mail on your server at all times, just check out IMAP. Also you can organize your mail in folders with imap
pyther: Thanks for confirming what I've googled.
JTD -
PLSQL Email alerts using DBMS_JOB
I need help with a request something like this:
If anyone does any changes to an existing Purchase Order i.e. add additional line items to it, the corresponding stakeholder should get an email alert notifying them of the changes. A Purchase Order usually has a structure of a PO Header in a Header table and the details (items) in a separate detail table i.e. for One record in the header table there can be multiple entries in the detail table (pretty straightforward).
The alert requirement was achieved using the UTL_SMTP function and having an after insert trigger placed on the detail table call a stored proc which would make use of UTL_SMTP and send out an email, but the problem is that for every insert on the detail table the user will get an email. So if, say, 50 items are added to the PO the users inbox will be flooded with 50 emails!
I am trying to find out a possibility of using DBMS_JOB to schedule the email stored proc to send out email after commit occurs on the detail table but I would also need the PO number, and the items that were added in one user session to the PO all at once, then compose the email with the PO number and all the items that were added and send the email, rather than sending one email each for every item.
Any help on this scenario would be greatly appreciated! Below is what its there currently-
PO_Head table structure-
PO_NUMBER, PO_DATE, SUPPLIER, CREATE_DATE, LOCATION....
PO_detail table structure-
PO_NUMBER, ITEM, ORDERED_QTY, LATEST_SHIP_DATE,....
CREATE OR REPLACE TRIGGER PO_DETAIL_CHG_AIR
AFTER INSERT
ON PO_DETAIL
FOR EACH ROW
DECLARE
....declaration and cursors....
BEGIN
if ALERT_AP_ORDER_CHG(.... , :new.item,:new.ordered_qty, :new.po_number)= FALSE then
raise PROGRAM_ERROR;
EXCEPTION
when OTHERS then
END PO_DETAIL_CHG_AIR;
CREATE OR REPLACE FUNCTION ALERT_AP_ORDER_CHG (.... , item,ordered_qty, po_number)
RETURN BOOLEAN IS
declarations
v_From VARCHAR2(80) := '[email protected]';
v_Recipient VARCHAR2(80) := NULL;
v_CarbnCopy VARCHAR2(80) := '[email protected]';
v_Subject VARCHAR2(80) := 'Changes done to PO';
v_Mail_Host VARCHAR2(50) := 'hub.new.xyz.com';
v_Mail_Conn utl_smtp.Connection;
crlf VARCHAR2(2) := chr(13)||chr(10);
BEGIN
v_Subject := v_Subject||po_number;
v_Mail_Conn := utl_smtp.Open_Connection(v_Mail_Host, 25);
utl_smtp.Helo(v_Mail_Conn, v_Mail_Host);
utl_smtp.Mail(v_Mail_Conn, v_From);
utl_smtp.Rcpt(v_Mail_Conn, v_Recipient);
--Create HTML message
utl_smtp.Data(v_Mail_Conn,
'Date: ' || to_char(sysdate, 'Dy, DD Mon YYYY hh24:mi:ss') || crlf ||
'From: ' || v_From || crlf ||
'Subject: '|| v_Subject || crlf ||
'To: ' || v_Recipient || crlf ||
'Cc: ' || v_CarbnCopy || crlf ||
'Content-Type: text/html;' ||crlf ||
'<html><body><font face="arial">'||
'FYI, an existing PO has been changed. Details Below-'|| crlf || crlf ||
'<tr><td>Order No# </td><td> '||po_number||'</td></tr>'||crlf||
'<tr><td>Item</td><td>'||item||'('||L_desc||')' ||'</td></tr>'||crlf||
'<tr><td>Qty</td><td>'||ordered_qty||'</td></tr>'||crlf ||
'<tr><td>Date</td><td>'||sysdate||'</td></tr></table>'|| crlf ||
'Note- This is an Auto generated email. Please do not respond.</font></body></html>');
utl_smtp.Quit(v_mail_conn);
return TRUE;
EXCEPTION
WHEN utl_smtp.Transient_Error OR utl_smtp.Permanent_Error then
L_error := 'Unable to send mail: '||sqlerrm;
return FALSE;
END;
Edited by: user9207221 on Dec 16, 2011 7:22 AM
Edited by: user9207221 on Dec 16, 2011 7:28 AMuser9207221 wrote:
I thought somewhere of using a compound trigger, but then ruled it out for some reason I don't really remember. I will give it a shot with DBMS_JOB, DBMS_SCHEDULER, and compound triggers and see if it works. This requirement is basically a result of an Application bug logged with Oracle as a Service request, so honestly its a temporary patch to be wary of the data going wrong in production.
Thanks for the suggestions.That'll work so long as an individual statement is responsible for adding the detail rows.
Here's an example
create table to_test
col1 number
create or replace trigger to_test_t01
for insert or update on to_test
compound trigger
l_rowids sys.odcivarchar2list default sys.odcivarchar2list();
after each row is
begin
l_rowids.extend();
l_rowids(l_rowids.count) := rowidtochar(:new.rowid);
end after each row;
after statement is
begin
for x in
select
distinct
col1
from to_test
where rowid in (select chartorowid(column_value) from table(cast(l_rowids as sys.odcivarchar2list)))
loop
dbms_output.put_line('distinct column = ' || x.col1);
end loop;
end after statement;
end;
--will work with inserting data in this fashion
insert into to_test select 1 from dual connect by level <= 5;
--will not work if you have
insert into to_test values (1);
insert into to_test values (1); -
Regarding Email alerts Using BPM
Hi All,
i need to send an Email Alert through using BPM here is the scenario where customer is entering some data which is coming thru Web Service to XI,
1) so here i have to validate the customer using SQL Database if customer exists then it should proceed further or else it should raise an alert.
2)Once its validated it should go thru another division check from SQL database, Based on the division if we have it as 00 then order should be created in R3 server or if is 10 the it should be created in SQL Server.
3)If no division exists an alert should be raised.
i just need to know the that for this above scenarios how many Alert category should i have to make
or
is it possible to create only one alert category to raise this two Email Alerts pls suggest ...............
Thnks you
Azeez khan.Hi All,
Thanks for the quick responces,
I have created all the steps required to send an Alert using the given Above blogs here i am facing some issues like
1) in properties tab of the BPM were we have a options like Alert Category
Alert Desception
here my doubt is can i give the same Alert category to the Above two conditions as per my Scenario ABove ie
For Validation Alert & Division Check .
And also here we are using BPM so is it necessary for me to write An java codes for the Above Requriments
Kindly guide me if i am mistaken .
Regards,
Azeez khan . -
Purging OSB Alerts using WLST scripts
Hi,
I am using the below script to purge the OSB Alerts. I am connecting to the OSB managed server to purge the alerts.
*# Connect to server*
* connect(weblogic,welcome,intdev:8011)*
* # Calculate the start and end time for purging the alerts*
* now=System.currentTimeMillis()*
* startTime=0*
* endTime=(now - days*3600*24*1000)*
* # Purging the Alerts*
* serverRuntime()*
* print "Deleting records older than", days, "days from OSB Alerts"*
* print cmo*
* alsbAlerts = cmo.getWLDFRuntime().getWLDFAccessRuntime().lookupWLDFDataAccessRuntime('CUSTOM/com.bea.wli.monitoring.alert')*
* numDeleted = alsbAlerts.deleteDataRecords(startTime,endTime,"")*
* print "No. of Alerts deleted =", numDeleted*
* # Disconnect from the domain*
* disconnect()*
I am getting the below error while executing the script
Successfully connected to managed Server 'osb_server1' that belongs to domain 'soa_domain'.
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
Location changed to serverRuntime tree. This is a read-only tree with ServerRuntimeMBean as the root.
For more help, use help(serverRuntime)
Deleting records older than 60 days from OSB Alerts
+[MBeanServerInvocationHandler]com.bea:Name=osb_server1,Type=ServerRuntime+
Disconnected from weblogic server: osb_server1
Unexpected error: weblogic.management.ManagementException
Problem invoking WLST - Traceback (innermost last):
File "/home/soadev/WLST/FINAL/purging/purge_Alerts.py", line 41, in ?
weblogic.management.ManagementException:
at weblogic.diagnostics.accessor.WLSAccessorMBeanFactoryImpl.createDiagnosticDataAccessRuntime(WLSAccessorMBeanFactoryImpl.java:206)
at weblogic.diagnostics.accessor.AccessRuntime.lookupDataAccessRuntime(AccessRuntime.java:315)
at weblogic.diagnostics.accessor.DiagnosticAccessRuntime.lookupWLDFDataAccessRuntime(DiagnosticAccessRuntime.java:77)
at weblogic.diagnostics.accessor.DiagnosticAccessRuntime.lookupWLDFDataAccessRuntime(DiagnosticAccessRuntime.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.management.jmx.modelmbean.WLSModelMBean.invoke(WLSModelMBean.java:437)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
at java.security.AccessController.doPrivileged(Native Method)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
at weblogic.management.mbeanservers.internal.JMXContextInterceptor.invoke(JMXContextInterceptor.java:268)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
at java.security.AccessController.doPrivileged(Native Method)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:444)
at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:323)
at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11$1.run(JMXConnectorSubjectForwarder.java:663)
at java.security.AccessController.doPrivileged(Native Method)
at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11.run(JMXConnectorSubjectForwarder.java:661)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder.invoke(JMXConnectorSubjectForwarder.java:654)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
at java.security.AccessController.doPrivileged(Native Method)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
+Caused by: weblogic.management.ManagementException: [Diagnostics:320103]There was an error creating the DiagnosticDataRuntimeMBean instance with the given logical name CUSTOM/com.bea.wli.monitoring.alert.+
at weblogic.diagnostics.accessor.WLSAccessorMBeanFactoryImpl.createDataAccessRuntime(WLSAccessorMBeanFactoryImpl.java:228)
at weblogic.diagnostics.accessor.WLSAccessorMBeanFactoryImpl.access$000(WLSAccessorMBeanFactoryImpl.java:55)
at weblogic.diagnostics.accessor.WLSAccessorMBeanFactoryImpl$1.run(WLSAccessorMBeanFactoryImpl.java:201)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.diagnostics.accessor.WLSAccessorMBeanFactoryImpl.createDiagnosticDataAccessRuntime(WLSAccessorMBeanFactoryImpl.java:197)
+... 39 more+
weblogic.management.ManagementException: weblogic.management.ManagementException:
Please provide pointers to get rid of this issue.
Edited by: Chintan Parekh on Jun 1, 2011 2:41 AMPlease refer -
http://blogs.oracle.com/MarkSmith/entry/osb_alerts_purging_is_essentia
From the blog -
The components that make up WLDF will be targeted to a single managed server in a clustered environment or to the Admin server in a single server environment. To establish what managed server this is, check to see where the WLI Aggregator application is targeted to. The WLDF data will be stored under this single managed server in the following location: //domain_name/servers/server_name/data/store/diagnostics/Check that on which server WLI Aggregator application is targeted and connect to that server from your script.
Regards,
Anuj -
How to send an mail to my email by using shell scripting
Hi,
I have shell script which generates some text file with text information. Now i want to send over the information available in the text file to my mail id.
Can anyone give me over the syntax or the script.?
Thanks a lot
With Regards
Vedavathi Esame typo
should read
mailx -s 'subject for mail message ' your_email_address < text_file_to_be_sent
Guido -
What is an enhanced calculation script?
What is an enhanced calculation script?
Hi,
Business Rules are integrated with Planning and are used to calculate complex Calculations .in essbase we use calculation script to create complex calculations and in planning we create business rules which is known as enhanced calculation script.. -
Copying substitution varibale using Maxl script
Hi,
Ive been trying to copy application using Maxl script in essbase to take backups. Everything gets copied except substitution variables. Could some one help me in sorting out this issue.
Is there any specific Maxl Command to copy substitution variable alone from one application to another, if so could u please share it with me.
thanksHi,
Unfortunately, as John said, there is no command to copy the subvars. One of my colleagues ran into this same issue on one of my projects. He ended up spooling a script with display variable all command to show all your variables and write them to a text file. from there he wrote a batch file to parse the text file for each of the variables, and then updated the subvars in the backup application with these values.
The thing you want to look out for here is that you want to make sure you properly handle checking for whether the subvar already exists in the backup application. If it does, you just want to run an update of the value. If it doesn't exist, you want to add it first. This is because there is no create or replace variable, so to avoid any errors, you need to be careful with that. I think you may want to look into some of the other alternatives John provided if you are still looking into this issue.
Thanks,
Daniel
http://www.DVEPM.com -
Custom Alert Email Templates Issue - List Alerts emails not using customized XML alert template
I have recently customized the XML alerts template (AlertTemplates.xml) for our site collection in SharePoint 2010 to exclude specific fields in the email when users who have subscribed to a list using the "Alert Me" feature. I
have renamed the custom alerts XML file and loaded the custom template in the following directory (%ProgramFiles%\Common Files\Microsoft Shared\Web server extensions\14\TEMPLATE\XML) and
restarted IIS. Once users subscribe to the alerts using the list using the "alert me" function they received the customized email as intended.
We needed to auto-subscribe users to the email alerts so what I did was used a powershell script to add users to the alert subscriptions using the script shown in below:
Import-Csv D:\Temp\filename.csv | ForEach-Object{
$webUrl=$_.WebUrl
$listTitle=$_.List
$alertTitle=$_.AlertTitle
$subscribedUser=$_.SubscribedUser
$alertType=$_.AlertType
$deliveryChannel=$_.DeliveryChannel
$eventType=$_.EventType
$frequency=$_.Frequency
$oldAlertID=$_.ID
$web=Get-SPWeb $webUrl
$testAlert = $web.Alerts | WHERE { $_.ID -eq $oldAlertID }
IF ($testAlert) {
$web.Alerts.Delete([GUID]$oldAlertID)
Write-Host Old alert $oldAlertID deleted. -Foregroundcolor Cyan
$list=$web.Lists.TryGetList($listTitle)
$user = $web.EnsureUser($subscribedUser)
$newAlert = $user.Alerts.Add()
$newAlert.Title = $alertTitle
$newAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::$alertType
$newAlert.List = $list
$newAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::$deliveryChannel
$newAlert.EventType = [Microsoft.SharePoint.SPEventType]::$eventType
$newAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::$frequency
if($frequency -ne "Immediate"){
$AlertTime=$_.AlertTime
$newAlert.AlertTime=$AlertTime
$newAlert.Update()
Write-Host Created $newAlert.Title for $subscribedUser . -Foregroundcolor Cyan
} ELSE {
Write-Host Alert $alertTitle for $subscribedUser already done. Moving on. -Foregroundcolor Magenta
When I ran the script and added the users and restarted the service, all users who were auto-subscribed via this method would get the email without the customizations that were done in the custom template. All users who manually subscribed to the list
using the "Alert Me" function would get the customized email.
Does anyone know why users who manually subscribe would get the custom email alert and why users who were auto-subscribed using the powershell script do not get the custom email alert?Hi ,
According to your description, my understanding is that users who were auto-subscribed using the PowerShell script do not get the custom email alert.
For your issue, it can be caused by the auto-subscribed alert email which is generated by PowerShell script is using OOTB alert template. You can add the following script into your script for setting
the alerts’ alert email template:
$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$AlertsTemplateCollection =new-object Microsoft.SharePoint.SPAlertTemplateCollection($contentService)
$newAlert.AlertTemplate = $AlertsTemplateCollection["YOUR_UNIQUE_TEMPLATE_NAME_VALUE"]
Reference:
http://sadomovalex.blogspot.com/2012/03/one-problem-with-updating-alert.html
Thanks,
Eric
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
contact [email protected]
Eric Tao
TechNet Community Support -
We have recently customized the XML alerts template (AlertTemplates.xml) for our site collection in SharePoint 2010 to exclude specific fields in the email when users who have subscribed using the "Alert Me" feature. We have renamed the
custom alerts XML file and loaded the custom template in the following directory (%ProgramFiles%\Common Files\Microsoft Shared\Web server extensions\14\TEMPLATE\XML) and restarted IIS. Once users subscribe to the alerts using the list "alert me"
function they received the customized email as intended.
We needed to auto-subscribe users to the email alerts so what we did was use a powershell script to add users to the alert subscriptions using the script shown below:
Import-Csv D:\Temp\filename.csv | ForEach-Object{
$webUrl=$_.WebUrl
$listTitle=$_.List
$alertTitle=$_.AlertTitle
$subscribedUser=$_.SubscribedUser
$alertType=$_.AlertType
$deliveryChannel=$_.DeliveryChannel
$eventType=$_.EventType
$frequency=$_.Frequency
$oldAlertID=$_.ID
$web=Get-SPWeb $webUrl
$testAlert = $web.Alerts | WHERE { $_.ID -eq $oldAlertID }
IF ($testAlert) {
$web.Alerts.Delete([GUID]$oldAlertID)
Write-Host Old alert $oldAlertID deleted. -Foregroundcolor Cyan
$list=$web.Lists.TryGetList($listTitle)
$user = $web.EnsureUser($subscribedUser)
$newAlert = $user.Alerts.Add()
$newAlert.Title = $alertTitle
$newAlert.AlertType=[Microsoft.SharePoint.SPAlertType]::$alertType
$newAlert.List = $list
$newAlert.DeliveryChannels = [Microsoft.SharePoint.SPAlertDeliveryChannels]::$deliveryChannel
$newAlert.EventType = [Microsoft.SharePoint.SPEventType]::$eventType
$newAlert.AlertFrequency = [Microsoft.SharePoint.SPAlertFrequency]::$frequency
if($frequency -ne "Immediate"){
$AlertTime=$_.AlertTime
$newAlert.AlertTime=$AlertTime
$newAlert.Update()
Write-Host Created $newAlert.Title for $subscribedUser . -Foregroundcolor Cyan
} ELSE {
Write-Host Alert $alertTitle for $subscribedUser already done. Moving on. -Foregroundcolor Magenta
When we ran the script and added the users and restarted the service, all users who were auto-subscribed via this method get the email without the customizations that were done in teh custom alert template. All users who manually subscribed on their
own to the list using the "Alert Me" function would get the customized email.
Does anyone know why users who manually subscribe to the alerts get the customized email, and users who were auto-subscribed using the powershell script do not get the customized email and get the standard generic email template?Hi ,
According to your code, it create a new alert using SPUser.Alerts.Add() method. For this method, it will create a new alert based on the predefined alert template by default.
If you only assigned the custom alert template to the list, users who manually subscribe to the alerts get the customized email, but users who were auto-subscribed using the PowerShell script get the standard
generic email template.
For your issue, you can set the new alert ‘s alert template:
http://social.technet.microsoft.com/Forums/en-US/1b19c12f-fc37-48cf-8b59-6c09f095dc23/custom-alert-email-templates-issue-list-alerts-emails-not-using-customized-xml-alert-template?forum=sharepointgeneralprevious
Here is a good blog you can have a look:
http://blogs.msdn.com/b/sharepointdeveloperdocs/archive/2007/12/07/customizing-alert-notifications-and-alert-templates-in-windows-sharepoint-services-3-0.aspx
Thanks,
Eric
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
contact [email protected]
Eric Tao
TechNet Community Support -
Essbase Calculation Script taking more time in new environment
Hi Everyone:
We have four environments in our implementation.
1. DEV Environment - 64 bit Essbase Version 11.1.1.3
2. PreProd Environment - 32 bit Essbase Version 9.3.0
3. PreProd Environment - 64 bit Essbase Version 11.1.1.3
In the above mentioned environment PreProd Environment - 64 bit Essbase Version 11.1.1.3 is a newly installed
environment.
We have migrated our Application from PreProd Environment - 32 bit Essbase Version 9.3.0 to PreProd Environment - 64 bit Essbase Version 11.1.1.3. A calculation script that takes only 20 minutes in 32 bit PreProd is taking more than
5 and half hours in newly installed 64 bit PreProd.
We have also migrated our Application from DEV Environment - 64 bit Essbase Version 11.1.1.3 to PreProd Environment - 64 bit Essbase Version 11.1.1.3. The calculation script that takes only 20 minutes in 64 bit Dev is taking more than 5 and half hours in newly installed 64 bit PreProd.
All the server settings and cache setting everything looks similar in all the three environments.
Please advice us what are all the possibilities that creates the issue.
Thanks and Regards,
Prabhakar.Hi Cameron,
Thanks for your reply.
I have cross checked the Virtual memory in both servers,in new server it was declared high.
Please find the cfg setting which we are using in our application.
AGENTPORT 1423
SERVERPORTBEGIN 32768
SERVERPORTEND 33768
AGENTDESC hypservice_1
;CSSREFRESHLEVEL auto
;SHAREDSERVICESREFRESHINTERVAL 30
CALCCACHEHIGH 199999999
CALCCACHEDEFAULT 150000000
CALCCACHELOW 10000000
CALCLOCKBLOCKDEFAULT 3000
DATAERRORLIMIT 10000
UPDATECALC FALSE
EXCEPTIONLOGOVERWRITE FALSE
CALCREUSEDYNCALCBLOCKS FALSE
PORTUSAGELOGINTERVAL 15
QRYGOVEXECTIME 600
LOGMESSAGELEVEL INFO
CALCPARALLEL 6
MAXLOGINS 100000
AGENTDELAY 100
AGENTTHREADS 30
AGTSVRCONNECTIONS 10
SERVERTHREADS 25
EXPORTTHREADS 1
SSLOGUNKNOWN FALSE
CALCNOTICEDEFAULT 10
NETRETRYCOUNT 3000
NETDELAY 2000
__SM__BUFFERED_IO TRUE
__SM__WAITED_IO TRUE
and aslo find the caches that we define:
Index cache:250000
Data Cache:250000
Data file cache:32768
The all above settings are identical both servers.
In New server ,only one script that is taking more time but remaining scripts are working fine with less time.
We also did one test cause that splitting the script in to multiple and executed ,in this cause the script where we are using direct assigning value from member(say A1) to another member(Say A2) is taking more time.But same scripts we executed in old server it executes fine.
Still we are not able to find out exact root cause for this issue.
Could please anyone help me to resove this issue.
Regards,
Prabhakar. -
Can not use Cisco VMS 2.3 to send email alert to admin
Hi all,
I am using IDSM version 5 + Catalyst 6513.
I am going to configure for Cisco VMS 2.3 to send alert email to admin. I downloaded scritp from cisco forum but now I can't configure.
1. I rename the file emailalertv5.txt to emailalertv5.pl
2. I copy the file to directory "E:\CSCOpx\MDC\etc\ids\scripts\"
3. I configure in Cisco VMS 2.3 (like the attachment)
However, I can't receive the alert email from Cisco VMS 2.3. When I connect to Security Monitor, I see many attack events.Hi all,
if you know the answer, please answer me. I am looking for your answer.
I read all materials about IDSM-2 but I can't configure email alert.
Thank you very much.
Maybe you are looking for
-
Brand new to Mac, does TM backup all users files, even when not logged on?
Hi Im brand new to Mac so please be gentle with me!! Im about to use TM for backup, I have an account and have made one for my wife, as we both have an iPod and so Ive herd its easier to use 2 accounts. She wont be logged on much, so if when Im logge
-
Dear all, I come from a country, Singapore that does not allow me to purchase movies and music from itune store. I heard of itunes credit - how to purchase them and where can I get it from - i know can purchase from apple store online in USA but only
-
Hello, our requirement is to upload PDF documents in Supply Chain Management (SCM) and attach them to Business Objects. Has anybody an idea for a best practice solution? Thanks and regards, Uwe
-
hello there. I have a problem with applet height during running forms in IE. As you could see on these two pictures, difference in height between window and canvas is minimal in Forms builder, but in applet i have to scroll down to see horizontal scr
-
I recently updated my OS from 10.2 to 10.28. Now, when I go to Mac Help application, I have a strange problem. There is no text box to enter a question (of which I seem to have many). I've tried clicking on logical places where a text box might be hi