How to fetch Schedule details from Subscription ID using ReportServer2010

Hi All,
I'm using Azure so ReportServer DB and the application DB  are in two different servers. So my requirement is to fetch the Schedule details from the ReportServer DB and store it in my application DB for further processing and i have only the SubscriptionID.
So is there any way i can fetch the schedule details from subscription ID from ReportServer2010 web service.
One alternative is that I'm connecting to the azure server and fetching the information but i want to know is there any built in web method to get this info.
Thanks in advance and let me know if you need any more info. Waiting for your valuable answer.
Regards,
Ravi Neelam.

After going thought different forums and got some knowledge on this issue and able to sort this issue. I'm posting this so other can easily use this method and can save lot of time.
Solution: I'm using CreateSchedule method which will create a Schedule in ReportServer DB and will return the ScheduleId which i will insert as a matchData parameter to my CreateSubscription
method. Hope the below code snippet will be use full.
This is my CreateSubscription Method code snippet:
public string CreateSubscription(string reportPath, string toAddress, string subject, string description, int matchDataSelection, Dictionary<string, string> itemParameters)
            int counter = -1;
            string subscriptionId = string.Empty;
            ExtensionSettings extensionSettings = GetExtensionSettings(toAddress, subject);
            ScheduleDefinition matchData = GetMatchData(matchDataSelection);
            ParameterValue[] parametersvalue = new ParameterValue[itemParameters.Count()];
            foreach (var item in itemParameters)
                ParameterValue param = new ParameterValue();
                counter++;
                param.Name = item.Key;
                param.Value = item.Value;
                parametersvalue[counter] = param;
            ScheduleDefinition scheduleDefinition = new ScheduleDefinition();
            scheduleDefinition = GetMatchData(matchDataSelection);
            string scheduleId = service.CreateSchedule("SampleScheduleDefnition", scheduleDefinition, null);
            return subscriptionId = service.CreateSubscription(reportPath, extensionSettings, description, "TimedSubscription", scheduleId, parametersvalue);
private ExtensionSettings GetExtensionSettings(string toAddress, string subject)
            ExtensionSettings extensionSettings = new ExtensionSettings();
            ParameterValue[] extensionParams = new ParameterValue[5];
            extensionParams[0] = new ParameterValue();
            extensionParams[0].Name = "TO";
            extensionParams[0].Value = toAddress;
            extensionParams[1] = new ParameterValue();
            extensionParams[1].Name = "IncludeReport";
            extensionParams[1].Value = "FALSE";
            extensionParams[2] = new ParameterValue();
            extensionParams[2].Name = "Subject";
            extensionParams[2].Value = subject;
            extensionParams[3] = new ParameterValue();
            extensionParams[3].Name = "RenderFormat";
            extensionParams[3].Value = "PDF";
            extensionParams[4] = new ParameterValue();
            extensionParams[4].Name = "Priority";
            extensionParams[4].Value = "NORMAL";
            extensionSettings.ParameterValues = extensionParams;
            extensionSettings.Extension = "Report Server Email";
            return extensionSettings;
private ScheduleDefinition GetMatchData(int matchDataSelection)
            int selection = matchDataSelection;
            DateTime currentDate = DateTime.Now;
            TimeSpan timeStampforNewTime = new TimeSpan(08, 00, 00);
            currentDate = currentDate.Date + timeStampforNewTime;
            ScheduleDefinition schedule = new ScheduleDefinition();
            schedule.StartDateTime = currentDate;
            if (matchDataSelection == 1)
                schedule.EndDate = DateTime.Now.AddDays(1);
                schedule.EndDateSpecified = true;
            else
                schedule.EndDateSpecified = false;
            ScheduleDefinition matchDataResponse = new ScheduleDefinition();
            switch (selection)
                case (int)MatchDataSelection.Once:
                    schedule.Item = GetPatternforDaily();
                    break;
                case (int)MatchDataSelection.Daily:
                    schedule.Item = GetPatternforDaily();
                    break;
                case (int)MatchDataSelection.Weekly:
                    schedule.Item = GetPatternforWeekly();
                    break;
                case (int)MatchDataSelection.BiWeekly:
                    schedule.Item = GetPatternforBiWeekly();
                    break;
                case (int)MatchDataSelection.Monthly:
                    schedule.Item = GetPatternforMonthly();
                    break;
            //XmlDocument xmlDoc = GetScheduleAsXml(schedule);
            //matchDataResponse = xmlDoc.OuterXml;
            return matchDataResponse;
private RecurrencePattern GetPatternforMonthly()
            MonthlyDOWRecurrence pattern = new MonthlyDOWRecurrence();
            pattern.WhichWeekSpecified = true;
            pattern.WhichWeek = WeekNumberEnum.FirstWeek;
            MonthsOfYearSelector months = new MonthsOfYearSelector();
            months.January = true;
            months.February = true;
            months.March = true;
            months.April = true;
            months.May = true;
            months.June = true;
            months.July = true;
            months.August = true;
            months.September = true;
            months.October = true;
            months.November = true;
            months.December = true;
            pattern.MonthsOfYear = months;
            DaysOfWeekSelector days = new DaysOfWeekSelector();
            days.Monday = true;
            pattern.DaysOfWeek = days;
            return pattern;
        private RecurrencePattern GetPatternforDaily()
            DailyRecurrence pattern = new DailyRecurrence();
            pattern.DaysInterval = 1;
            return pattern;
        private RecurrencePattern GetPatternforWeekly()
            WeeklyRecurrence pattern = new WeeklyRecurrence();
            DaysOfWeekSelector selector = new DaysOfWeekSelector();
            selector.Monday = true;
            pattern.DaysOfWeek = selector;
            return pattern;
        private RecurrencePattern GetPatternforBiWeekly()
            WeeklyRecurrence pattern = new WeeklyRecurrence();
            DaysOfWeekSelector selector = new DaysOfWeekSelector();
            selector.Monday = true;
            pattern.DaysOfWeek = selector;
            pattern.WeeksInterval = 1;
            pattern.WeeksIntervalSpecified = true;
            return pattern;
Regards, Ravi Neelam.

Similar Messages

  • How to fetch corresponding records from 2 tables using ADF Toplink & EJB

    Hi,
    I am unable to fetch records from 2 tables, which has a foregin key.Used the custom query in toplink, But the output is the cartition of the first table draged and the first row of the second table.The output required should be in the form of ADF Table. I am able to find the output in JSF data table.
    Two tables:
    Table name:Solutions
    sol_id varchar2(PK)
    sol_name varchar2
    Table name:Solution_details
    sol_id varchar2(FK)
    common_asum_id varchar2(PK)
    common_detail varchar2
    Output Required:
    sol_id,sol_name,common_asum_id,common_detail
    Custom query:
    SELECT * FROM solutions a
    ,solution_details b
    WHERE a.sol_id=b.sol_id

    Hi,
    I am unable to fetch records from 2 tables, which has a foregin key.Used the custom query in toplink, But the output is the cartition of the first table draged and the first row of the second table.The output required should be in the form of ADF Table. I am able to find the output in JSF data table.
    Two tables:
    Table name:Solutions
    sol_id varchar2(PK)
    sol_name varchar2
    Table name:Solution_details
    sol_id varchar2(FK)
    common_asum_id varchar2(PK)
    common_detail varchar2
    Output Required:
    sol_id,sol_name,common_asum_id,common_detail
    Custom query:
    SELECT * FROM solutions a
    ,solution_details b
    WHERE a.sol_id=b.sol_id

  • How to get Workflow details from workflowinstance ID using PowerShell

    Greetings
    I would like to know if there is a quick PowerShell command that I can run that returns details (eg, name, title, etc) associated with a workflow instance ID presented in an error message.  I would like to be able to do this to assist with troubleshooting
    2010 and 2013 workflow operation.  This would be beneficial in a situation where error messages are filling the Workflo Operations log, and these messages only present a workflowinstance ID and nothing else.  If I could could quickly use PowerShell
    to get details associated with that workflowinstance, it would greatly simplify troubleshooting, as I could more rapidly identify what running instance and list the workflow is associated with.
    Steve
    General

    Hi Stephan,
    According to your description, my understanding is that you want to list the running workflow instances in SharePoint 2013 On-premise.
    You can use PowerShell commands with SPWorkflowState enumeration to classify the workflow instances.
    More information:
    http://www.codeproject.com/Articles/679628/Easiest-Way-of-Cancelling-All-S
    http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.workflow.spworkflowstate(v=office.15).aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to fetch the data from Ecc to BI ?

    Hi everybody.
    Can anyone briefly explain with the screen shots > How to fetch the datasource from  RSA5 tcode in ECC to BI? How you replicate there? how the INFO PACKAGE , TRANSFORMATIONS, DTP , DSO, INFO CUBE was created? where we see the catalogs for this data.......THANKS IN ADVANCE

    Hi.
    You can follow the below steps to fetch the data from ECC to BI System.
    1>Connection should be there between ECC and BW System.
    2>Go to Tcode-RSA5 in ECC system and find your data source and then activate it.
    3> Go to Tcode-RSA6 in ECC system to check whether your DS is available..if it is there then its been activated.
    4>Go to Extract Checker tcode RSA3 and test the data and make sure data is correct.
    5>login to BW Side..go to tcode RSA1-->Choose your source system. ECC -> double click on it and you will move to Data source>Select your Application component ex, SD,FI ...>Right click and replicate the Datasouce> Now on refresh you can see the datasource in BI System.
    6>Install the related the Infoprovider .. cube or dso ..Connect the datasouurce and create Transformation.
    7> Now create infopackage and run it in ful & init mode then do the delta for the new records.
    Please refer the below link for more details on extraction.
    http://www.trinay.com/SAP%20BW%20Extraction.pdf
    Hope this helps.
    Br.
    Alok

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How do i get data from a structure using join?

    hi,
    what is the actual use of a structure.?
    my problem is :
    KUAGV is an existing STRUCTURE. it has got one fields each which links to MARA, AND VBKD tables. i want to fetch all related information from KUAGV, mara, vbkd . which is the better way : using joins or views or anything else? how do i
    get data from a structure using join?

    structure temporarily holds  any data passed to it dynamically throughout the runtime but doesnot store it permanently. so
    a structure cannot be included in a join.so instead of incuding structure KUAGV's field in a join 
    search the transparent table in which same field are present and  use it in join.
    A structure if created in DDIC(Data Dictionary) is a global DATA STRUCTURE which is used to group related information, for example you would group all the details of your bank account into a structure BANK_ACCOUNT that contains fields like account_Id, account_holder_name etc.
    If you create a structure in your program then it is local to your program. So you use this structure to create data holders of this DATA TYPE to hold data in your program.
    Edited by: suja thomas on Feb 11, 2008 6:24 AM
    Edited by: suja thomas on Feb 11, 2008 6:31 AM

  • How to fetch what are all the tables used in this TR no and Package name of

    Hi Friends,
    I have input of Transport Request no (E070-TRKORR).
    How to fetch what are all the tables used in this TR no and Package name of this Table.

    HI,
    FYI
    SELECT E071OBJECT_NAME, E070MDEVCLASS
    FROM E071, E070M
    WHERE TRKORR = YOU REQUEST NO.

  • I'm new to the LabView. How do I pass data from VI configured using Serial (CMTS using CLI commands to set Parameters ) to VI configured using GPIB(vecto​r signal analyzer ) to measure such as RF frequency or power on the instrument​? Thanks

    I'm new to the LabView. How do I pass data from VI configured using Serial (CMTS using CLI commands to set Parameters ) to VI configured using GPIB(vector signal analyzer ) to measure such as RF frequency or power on the instrument?
    I just want to set something on the front panel that will execute the Serial parameters first and then pass these settings to vector signal analyzer
    Thanks
    Phong

    You transfer data with wires.
    Frankly, I'm a little confused by your question. I can't think of any reason why you would want to pass serial parameters (i.e. baud rate, parity) to a GPIB instrument. Please explain with further detail and attach the code.

  • How to download a file from the internet using terminal

    how to download a file from the internet using terminal
    does any one know how to download afile from the internet using the Terminal application?

    Use curl. Something like this:
    curl -O http://www.example.com/filename.zip
    For more info, type +man curl+.

  • How to read a data from USB port using JAVA

    hi all,
    i need to know how to read a data from USB port using java. any API are available for java ?.........please give your valuable ideas !!!!!!!!!
    Advance Thanks!!

    You can do this. Please use this link
    [http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=uHu&q=java+read+data+from+usb+port&btnG=Search&meta=&aq=f&oq=]
    What research did you do of your own? Have you done some testing application and tried yourself??

  • How do I extract pages from a pdf using 'Adobe PDF Pack'?

    How do I extract pages from a pdf using 'Adobe PDF Pack'?

    I think you have to buy extractor for 1.99 a month to extract PDF.  But I am having trouble activating it.  Good luck.

  • How can I get permission from imovie to use text in my uploaded monetized YouTube clips

    I am able to use imovie to edit movies. I use a small amount of text and no music from imovie. How do I obtain permission from imovie to use a text title for my monetized YouTube uploads?

    You do not need permission for this.

  • How to transfer range parameter from vb when using bapi calling

    Hi,everyone.how to transfer range parameter from vb when using BAPI calling?

    Did you get the solution to your problem?  Can you please share it with me. I have a similar problem. I have a VB program that calls RFC function. It works with a single parameter but not with a range of parameters. If you have the solution, could you please share sample codes with me? Thank you so much.

  • How can i send pictures from iphoto and use entourage

    how can i send pictures from iphoto and use entourage. I use to do it when I used Mac OS Leopard

    Click on the image in question and execute COMMAND D which will copy an image in iPhoto.
    To delete an image in iPhoto, execute COMMAND DELETE.
    Ciao.

  • How do I transfer video from gopro hero3 using a 64 GB microSDXC CARD

    How do I transfer video from gopro hero3 using a 64 GB microSDXC CARD

    iPad SD Card Reader supports SD standards up to SDHC, miniSD and microSD with adapters, and MMC.
    SDXC is not supported.

Maybe you are looking for

  • Problem with fading out particles in cs5

    I have a problem with fading out particles or anything for that matter in my CS5 after effects!  I set up the key frames right.  O opacity at first and whatever number at next and it fades in fine,  But when I try to do the reverse it will not fade o

  • Why can't I print coupons?

    When I print the coupon from a manufacturer's website, it prints 2-3/4" wide by 2" high at the top of the sheet with the top of the coupon cut off and the right side is also missing. I have Mac OS Version 10.6.8 and use Safari Version 5.1.2. The webs

  • 100 page iPhoto book limit - can this be exceeded?

    I have a client who loves iPhoto books, but he needs to print one longer than 100 pages (which is the stated limit on Apple's website). Which photo service printing company does the iPhoto books for Apple? I'm wondering if I can contact them directly

  • QuickTime (recording screen with sound?)

    I have no problem making screen recordings off the web using QuickTime but for some reason QT doesn't record the sound unless I output the sound through my external speakers for the iMac mic to pick up. I've tried all of the settings (re. image)... b

  • Tax Reporting USA

    Hello Experts, I am looking for some standard transactions for tax reporting (jurisdiction code level). So far I found standard report RFKKTX00 which has its own limitations. Is there anything that can be used for US based tax reporting? Please let m