Dynamic subject name in SSRS data alert

Hi,
In the Data Alter Designer,
I want the Subject to accept <ReportName> is published for <Date>
data in <> will be replaced at run time.
Is this possible to do?
Thanks!

Hi CCCJJJJJ,
Reporting Services data alerts are a data driven alerting solution that helps you be informed about report data that is interesting or important to you, and at a relevant time. Data alert contains a subject to display the predominant theme. The default subject
of the email is Data alert for <alert name>. We can change the subject to fit our needs. However, the subject is static. No matter how we change the subject, it is always static display. So we cannot achieve your requirement in current release of Reporting
Services.
Thank you for your understanding.
Regards,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • Configure a SSRS Data Alert once for all parameters

    Hi,
    while BOL mention "[...] If the report is parameterized, you might need to run the report using different parameter values to ensure the data that that you are interested in appears in the report. After the report is open, you click the
    New Data Alert option on the Actions menu on the report toolbar to open Data Alert Designer [...]"
    is it possible, or is there a work around, to configure a data alert that lists all parameter members?
    i.e. I've a report with a parameter that is "Customer" that contains more or less 1000 names. How can I create a single data alert for each Customer? --> i.e if the customer has a payment delay greater than n days?
    Thanks in advance, Davide

    Hi Davide,
    Per my understanding that you want to create only one Data Alert for all the parameters in the lists, right?
    As you know that if the report is parameterized ,only after the report is open then you can click the New Data Alert option on the Actions menu on the report toolbar to open Data Alert Designer and create the Data alert.
    So by design you need to first select the parameter to filter the report and then create the “New Data Alert” . When you choose a data feed, the data from the feed displays in a table with rows and columns in the alert data pane of Data Alert Designer which
    is the filtered tables data based on this parameter, that means the current version not support to set only one Data Alert for all parameters at once through the setting of the “New Data Alert” , The parameter values you chose to run the report are saved
    in the alert definition and will be used when report is rerun as a step in processing the alert definition. To use different parameter values, you must create a new alert definition.
    I recommend you that submit this suggestion at
    https://connect.microsoft.com/SQLServer/
    If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the level of service provided.
    More details information about the date alert for your reference:
    http://msdn.microsoft.com/en-us/windows/gg492254(v=sql.100).aspx
    http://msdn.microsoft.com/en-us/library/gg492251.aspx
    Thank you for your understanding.
    Regards
    Vicky Liu

  • Giving dynamic sheet name while importing data from Excel in OPENROWSET query

    I want to import data from Excel to table in SQL server. Sheets in Excel file can have any name. I want to get data from first sheet of the excel file. 
    CREATE PROC CopyExcelDataToTempTable
    @ExcelPath VARCHAR(1000)
    AS
    BEGIN
    EXEC sp_configure 'show advanced options', 1;
    RECONFIGURE;
    EXEC sp_configure 'ad hoc distributed queries', 1;
    RECONFIGURE;
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1;
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1;
    INSERT INTO TempData
    SELECT *
    FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
    SELECT CONCAT('Excel 12.0 Xml;HDR=YES;Database=', @ExcelPath),
    'SELECT * FROM [Sheet1$]');
    END;
    Currently I am giving Sheet1 as static name in Select statement. But my sheet name is not fixed. I want to create a dynamic query. If getting Sheet name is not possible then can we put sheet with its index in Select query? There is no front end. Whatever I
    want to do is in SQL server 2012. Is there any solution for this problem?

    Hi Ajinkya,
    To get the sheet names from an excel, you can use the Stored Procedure
    SP_TABLES_EX. See the below code.
    EXEC sp_addlinkedserver 'ExcelSource', '',
    'Microsoft.ACE.OLEDB.12.0',
    'c:\worksheet.xls',
    NULL,
    'Excel 8.0'
    EXEC sp_addlinkedsrvlogin 'ExcelSource', 'false'
    GO
    EXECUTE SP_TABLES_EX 'ExcelSource'
    the names in the worksheet.xls and execute result are like below.
    Table name
    a
    b
    c
    d
    Regarding your description, you need the first sheet of your excel. As the result shows, the sheet names are sorted, so there’s no guarantee to get the first one. The SP can work as a workaround when there’s only one sheet in your excel or the required sheet’s
    name is customized to be sorted at the top first.
    If you have any question, feel free to let me know.
    Best regards,
    Eric Zhang

  • Trigger a SQL Reporting Service Data Alert when a SharePoint List is updated & need to pass parameters to report

    We have been able to get a SSRS Data Alert to trigger a report to be emailed whenever an item is added to a specific SharePoint List.   The report can accept parameters but would like to be able to pass parameters that are used in the report.   
    Is this possible? (I cross posted over at SharePoint dev. and was referred here)
    Thanks
    Νικοσ Γιαννιοσ

    Hi Nikos,
    Based on my understanding, you have deploy a parameter report to SharePoint site, then you have created a data alter for this report. Then you want to pass parameters to report then send alter, right?
    In Reporting Services, if the report has parameters, we should select values for the parameter, after report display, we can create a new data alter. Otherwise, the New Data Alter button is grayed out in the drop-down list of the Action button. So that the
    rule is created based on the filtered report. Please refer to below screenshot:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Saving result from sp_executesql into a variable and using dynamic column name - getting error "Error converting data type varchar to numeric"

    Im getting an error when running a procedure that includes this code.
    I need to select from a dynamic column name and save the result in a variable, but seem to be having trouble with the values being fed to sp_executesql
    DECLARE @retval AS DECIMAL(12,2)
    DECLARE @MonthVal VARCHAR(20), @SpreadKeyVal INT
    DECLARE @sqlcmd AS NVARCHAR(150)
    DECLARE @paramdef NVARCHAR(150)
    SET @MonthVal = 'Month' + CAST(@MonthNumber AS VARCHAR(2) );
    SET @SpreadKeyVal = @SpreadKey; --CAST(@SpreadKey AS VARCHAR(10) );
    SET @sqlcmd = N' SELECT @retvalout = @MonthVal FROM dbo.CourseSpread WHERE CourseSpreadId = @SpreadKeyVal';
    SET @paramdef = N'@MonthVal VARCHAR(20), @SpreadKeyVal INT, @retvalout DECIMAL(12,2) OUTPUT'
    --default
    SET @retval = 0.0;
    EXECUTE sys.sp_executesql @sqlcmd,@paramdef, @MonthVal = 'Month4',@SpreadKeyVal = 1, @retvalout = @retval OUTPUT;
    SELECT @retval
    DECLARE @return_value DECIMAL(12,2)
    EXEC @return_value = [dbo].[GetSpreadValueByMonthNumber]
    @SpreadKey = 1,
    @MonthNumber = 4
    SELECT 'Return Value' = @return_value
    Msg 8114, Level 16, State 5, Line 1
    Error converting data type varchar to numeric.

    Please follow basic Netiquette and post the DDL we need to answer this. Follow industry and ANSI/ISO standards in your data. You should follow ISO-11179 rules for naming data elements. You should follow ISO-8601 rules for displaying temporal data. We need
    to know the data types, keys and constraints on the table. Avoid dialect in favor of ANSI/ISO Standard SQL. And you need to read and download the PDF for: 
    https://www.simple-talk.com/books/sql-books/119-sql-code-smells/
    >> I need to select from a dynamic column name and save the result in a variable, but seem to be having trouble with the values being fed to sp_executesql <<
    This is so very, very wrong! A column is an attribute of an entity. The idea that you are so screwed up that you have no idea if you want
    the shoe size, the phone number or something else at run time of this entity. 
    In Software Engineering we have a principle called cohesion that says a model should do one and only one task, have one and only one entry point, and one and only one exit point. 
    Hey, on a scale from 1 to 10, what color is your favorite letter of the alphabet? Yes, your mindset is that level of sillyity and absurdity. 
    Do you know that SQL is a declarative language? This family of languages does not use local variables! 
    Now think about “month_val” and what it means. A month is a temporal unit of measurement, so this is as silly as saying “liter_val” in your code. Why did you use “sp_” on a procedure? It has special meaning in T-SQL.  
    Think about how silly this is: 
     SET @month_val = 'Month' + CAST(@month_nbr AS VARCHAR(2));
    We do not do display formatting in a query. This is a violation of at the tiered architecture principle. We have a presentation layer. But more than that, the INTERVAL temporal data type is a {year-month} and never just a month. This is fundamental. 
    We need to see the DDL so we can re-write this mess. Want to fix it or not?
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • How to select column dynamically with sharepoint list as data source in ssrs report

    Hi all,
    I am creating reports from SharePoint list but i have requirements to select the column name dynamically with SharePoint list as data source. I didn't find any way of doing this.. 
    Can anyone help me to resolve this issue..
    There is no way of specifying column name dynamically here in data set query
    <RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <ListName>test list</ListName>
      <ViewFields>
        <FieldRef Name="ID" />
        <FieldRef Name="ContentType" />
        <FieldRef Name="Title" />
        <FieldRef Name="Modified" />
        <FieldRef Name="Created" />
        <FieldRef Name="Author" />
        <FieldRef Name="Editor" />
        <FieldRef Name="_UIVersionString" />
        <FieldRef Name="Attachments" />
        <FieldRef Name="Edit" />
        <FieldRef Name="LinkTitleNoMenu" />
        <FieldRef Name="LinkTitle" />
        <FieldRef Name="DocIcon" />
        <FieldRef Name="ItemChildCount" />
        <FieldRef Name="FolderChildCount" />
        <FieldRef Name="test_x0020_date" />
        <FieldRef Name="title2" />
      </ViewFields>
    </RSSharePointList>

    Hi MNRSPDev,
    Sorry for the delay.
    According to the current description, I understand that you want to specify column name in dataset query designer dynamically when using SharePoint list data source.
    Based on my research, this is not supported by default. As a workaround, you can use XML data source. The XML content can be embedded directly within the query. This lets you use the expression capabilities within the processing engine to build queries and
    data dynamically within the report. And it can be used for retrieving XML data directly from an external data source, passing it using parameters, and embedding it within the query.
    Reference:
    http://www.codeproject.com/Articles/56817/Dynamic-Reports-with-Reporting-Services
    Hope this helps.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Data model with a dynamic table name

    Hi,
    I have report requirement, where in the table name in the data model query is unknown.So I use lexical parameter like " select * from &P_TABLE_NAME". This dynamic table is created and data populated in the before report trigger and table name is assigned to P_TABLE_NAME. The parameter P_TABLE_NAME has to be assigned an initial value otherwise the report errors with 'invalid table name' error. So I give a dummy table say 'DUMMY' as the initial value which has the same structure (with no data ) as the table that is being created in the before report trigger.
    The problem is that the data model query is being parsed ( and maybe executed ) even before the 'before report' trigger is run. As a result, the report o/p is empty, since the query used the DUMMY table for execution. But after the report completes, I can see the dynamic table being created with data.
    Question: Why is the before report trigger getting executed after the datamodel query is parsed and executed.
    Regards,
    Suresh

    Hi....
    yes, these are the settings I have:
    server folder: /Applications/MAMP/htdocs/dwphpelclasico
    web url:  http://localhost/dwphpelclasico/
    They should be correct. But I still get the message:
    Warning:  require_once(Connections/elclasico.php) [function.require-once]: failed to open stream: No such file or directory in /Applications/MAMP/htdocs/dwphpelclasico/list.php on line 1
    Could it be something with list.php?
    This is a new file I created to display my tableand  where I am inserted the record set.
    thanks

  • Dynamic subject based on data structure (JD Edwards)

    In JD EDwards TR 8.98.3.0 it should be possible to create a dynamic email subject based on a data structure that is connected to a report definition. I have managed to create the data strucure with two elements (DOCO and DESC), this data structure is connected to a report definition in which I have stated that the subject must contain the first element (DOCO): Purchase order &1.
    In the report definition I mapped the element DOCO from the data structure to the XML-element that contains the order number.
    Unfortunately the e-mail does contain the statis text "purchase order" but it doesn't contain the order number (DOCO) from the XML-file.
    Can anyone give me a hint for what I have done wrong?

    In JD EDwards TR 8.98.3.0 it should be possible to create a dynamic email subject based on a data structure that is connected to a report definition. I have managed to create the data strucure with two elements (DOCO and DESC), this data structure is connected to a report definition in which I have stated that the subject must contain the first element (DOCO): Purchase order &1.
    In the report definition I mapped the element DOCO from the data structure to the XML-element that contains the order number.
    Unfortunately the e-mail does contain the statis text "purchase order" but it doesn't contain the order number (DOCO) from the XML-file.
    Can anyone give me a hint for what I have done wrong?

  • Error - Creating Data Alert SSRS SharePoint

    I am getting the below error when I try to create a new data alert on a SSRS report which is integrated with SharePoint 2013. The database is SQL Server 2012.
    When I go to the link given in the error window, I see the below statement.
    "The definition of the resource ID could not be found.
    This webpage provides developers with Silverlight exception message text, which can be useful in diagnosing failures and problems with Silverlight applications. Some exception strings contain tokens for additional information produced by your application.
    To see these descriptive error messages on your local machine and obtain other debugging resources, please install the latest version of Silverlight for Developers on your
    Windows or
    Mac computer".

    Hi John,
    Appreciate for sharing the experience.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to fetch APPROVER NAME  and approval date dynamically for an user

    Hi all..
    How to fetch approver name and approval date dynamicall for an user in an email template..
    can any help me to sort out this pbm,i am new to IDM..
    Thanks in advance..

    Access policies get a static value.  You can't populate a field with an adapter.  If you must do this, leave the field blank, and put an adapter on the process form for your field that must be populated using code or logic.
    -Kevin

  • Dynamic subject in AS2 receiver

    hi experts,
        I have a scenario in which i am sending data to third party using AS2 adapter.
    My scenario is PROXY->XI->AS2. In AS2 receiver adapter I need to use dynamic subject.
    For that I have used adpater module  "localejbs/Seeburger/AttribMapper"
    *PARAMETER NAME:-- http://seeburger.com/xi/common/dtSubject*
    PARAMETER VALUE:--  DYNSUBJECT
    while mapping in IR I am passing one field(strSubject)  as  input data to the below code:-
    DynamicConfiguration conf = (DynamicConfiguration) container.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey keySubject = DynamicConfigurationKey.create( "http://seeburger.com/xi/common/dtSubject", "DYNSUBJECT");
    conf.put(keySubject, strSubject);
    The value of strSubject should be the subject in AS2 message.
    The scenario is working fine but I m getting below error in communication channel:
    Exception caught by adapter framework: AttribMapper:Could not evaluate expresion DYNSUBJECT . Error: Unexpected token <EOT> at position 0. ( expected
    Help will be appreciated
    Thanks
    Jaideep

    Let me expalin you the complete thing.
    In mapping i m using this UDF for dynamic subject.
    DateFormat dfCurrentDate = new SimpleDateFormat("yyyy-MM-dd");
    DateFormat dfCurrentTime = new SimpleDateFormat("HH:mm:ss.SS");
    Date dCurrentDate = new Date();
    String strCurrentDate = dfCurrentDate.format(dCurrentDate) + "T" + dfCurrentTime.format(dCurrentDate) + "Z";
    String strSubject="Literal"+ "_" + strCurrentDate;
    // Dynamic Subject
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey keySubject = DynamicConfigurationKey.create( "http://seeburger.com/xi/common/dtSubject", "DYNSUBJECT");
    conf.put(keySubject,strSubject);
    return "";
    In receiver service I have used "localejbs/Seeburger/AttribMapper" module.
    Parameter name  http://seeburger.com/xi/common/dtSubject
    Parameter value  @http://seeburger.com/xi/common/dtSubject/DYNSUBJECT
    In moni I can see the dynamic configuration tab(neither Tab nor value)
    But in RWB comm. channel monitoring I can see in Audit log but not in SOAP document.
    Hope i have cleared you..
    Thanks
    Jaideep

  • Dynamic Subject in Smartforms (CRM)

    Hi,
    Our requirement is that we want the Dynamic Text in the Subject Line of the mail, whether is it possible ?
    I tried with the putting &, but it displays only the Trxn Number.
    Example : In Subject line we need Trxn Description, Customer No, Customer Name
    Thanks in advance for any solution.
    Regards
    Pethukumar P

    Let me expalin you the complete thing.
    In mapping i m using this UDF for dynamic subject.
    DateFormat dfCurrentDate = new SimpleDateFormat("yyyy-MM-dd");
    DateFormat dfCurrentTime = new SimpleDateFormat("HH:mm:ss.SS");
    Date dCurrentDate = new Date();
    String strCurrentDate = dfCurrentDate.format(dCurrentDate) + "T" + dfCurrentTime.format(dCurrentDate) + "Z";
    String strSubject="Literal"+ "_" + strCurrentDate;
    // Dynamic Subject
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey keySubject = DynamicConfigurationKey.create( "http://seeburger.com/xi/common/dtSubject", "DYNSUBJECT");
    conf.put(keySubject,strSubject);
    return "";
    In receiver service I have used "localejbs/Seeburger/AttribMapper" module.
    Parameter name  http://seeburger.com/xi/common/dtSubject
    Parameter value  @http://seeburger.com/xi/common/dtSubject/DYNSUBJECT
    In moni I can see the dynamic configuration tab(neither Tab nor value)
    But in RWB comm. channel monitoring I can see in Audit log but not in SOAP document.
    Hope i have cleared you..
    Thanks
    Jaideep

  • Upgrade from VS 2010 to VS 2012 - SSRS Data Extension no longer works.

    I have upgraded to VS 2012 (with BI Tools) installed. We have an SSRS Data Extension that worked fine with VS 2010, both in the VS designer and on the SSRS server. I made the same changes as VS2010 to RSReportDesigner.config and RSPreviewPolicy.config
    in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\ and the data extension name is there in the data source dropdown, but it isn't the localized name from the assembly - so obviously the assembly does not appear to be
    loading properly.  In ProcMon, I can see devenv finding the DLL and even doing a load image on it, but clearly I am missing something. Any ideas or at least hints on how to troubleshoot this?
    My dev machine is Windows 7 x64. The VS 2010 version was compiled for Any CPU (I have tried this one). I have also tried to build an x86 version, since I read somewhere it needs to be compiled for 32 bits. I also tried a debugging version that logs every
    call and clearly VS isn't calling anything, since a log isn't even created. 
    Please help!
    Thanks
    Mitch vH
    btw; not related - but it is kind of lame that I am having to use Chrome to create this, since IE went to a spiral of death trying to sign me into my live account.

    Hi Mitch vH,
    According to your description, the issue is that you cannot load the assembly in the Reporting Services. Based on my research, when the process or configured impersonation account does not have permissions access to the ASP.NET temporary files folder will
    cannot load the assembly. To avoid this issue, please try to specify the Read/Write permission for an account to:
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ReportSerever
    And please check have you referenced there some other special assembly in your DLL, which is may missing on the server? There is a similar issue, you can refer to it.
    http://stackoverflow.com/questions/13379804/could-not-load-file-or-assembly-in-reporting-services
    Hope this helps. If the issue is persist, please check if you have get any error message. Could you please post the error message? It is benefit for further analysis.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to set dynamic table name in sql query?

    I want set dynamic table name by parameter in sql query,just like:
    select * from :tbname
    but run report is error,BI P report table name is invalidation.
    What can i do? Thanks!

    Hi,
    that's only possible inside a data template with a lexical parameter.
    Regards
    Rainer

  • Error dynamic File Name in Receiver File Adapter

    Hi all,
    Dynamic file name for Receiver file Adapter Problem
    my multi mapping look like this in design mode
    messages
         message1
              SD01_E
                   FileName
                   row
         message2
              SD02_E
                   FileName
                   row
    by processing the xml look like this:
    <ns2:SD01_E xmlns:ns2="urn:lsv.de/SAP/XXX">
    <FileName>L40SA939.xiConstant</FileName>
    - <row>
    or
    <ns2:SD02_E xmlns:ns2="urn:lsv.de/SAP/XXX">
    <FileName>L40SA939.xiConstant</FileName>
    - <row>
    in file receivere adapter  i have try this but it dos not work
    payload:SD01_E,1,FileName,1
    Error:com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 0(:main:, row:1, col:0)
    is there any way to have access to Filename  in different root elements??
    regards
    Ralf

    Hi Ralf,
    i think, you need for each XML msg (each different root element) a new adapter -> a new IF determination, new rec agreement and a new channel.
    Regards,
    Udo

Maybe you are looking for

  • Partial transfer of Recon Key

    Dear Expert, We do invoicing in mass. There are certain cases where in wrong billing is happened for particular customers. For example we did billing of 100 customers. Outof which 5 customers billing amount is wrong. Billing is stored in one recon ke

  • FSG schema and load xml data fails

    I want to start using xml publisher to make the FSG reports look better. Whilst Oracle provides a basic template, it doesn't allow very much control over the data. How do I create a xml data file and schema so that I can create a new rtf template. I

  • How to turn of suggestion made by illustrator

    When selecting shapes in illustrator, illustrator suggests to put the shapes in a layer, group or path. Is there a way to turn these suggestions of?

  • Web Forms 10g font size

    Hi, I've upgraded my Forms 6i client/server application to 10g but when I run my application, fonts's size is too small! The application server is installed on a Linux OS. Does anyone knows how do I increase font size? Thank you in advance, Carla Alm

  • Compile the ejb

    hello i am now studying j2eetutorial from sun,in this book,it always compile the ejb by the ant tool,i don't know why,is it necessary?because i feel difficult to write the "build.xml" file. question 1:can i use "javac" to compile the ejb,i think it's