Script to close old service requests from date X backwards

Running 12.1.3
We have a bunch of service requests that are old and need to be closed. Most are from 2005 back. There are around 1600 of them I would like to close but doing it by hand it not really an option.
Is there a script I can run to close everything older than date X on a one time basis to clear these old ones up?
Thanks!

Please see these docs.
How to Bulk Purge Attachments from Service Requests? [ID 567204.1]
Service Requests: Archive/Purge Enhancement Requests [ID 431321.1]
FAQ: CRM Teleservice and Service Requests [ID 743032.1]
How to Purge Archive Programs for Service Modules [ID 1379645.1]
R12.1.3 Performance Issue with 'Service Request Data Purge' Program [ID 1281517.1]
What Tables Are Affected By "Service Request Data Purge" Concurrent Program? [ID 1450918.1]
Thanks,
Hussein

Similar Messages

  • User role for service requests from the SSP

    Does the End User role have enough permissions for users to create service requests from the SSP?  I know for incidents it is but I am not sure about service requests.  If you go through the Service Catalog Checklist, step 5 to create the User
    Role brings up a new role based on the Author role and not on the end user.

    here step by step procedure with user access.
    http://www.concurrency.com/blog/scsmportalpermisions/
    Cheers
    Antoine AL Ibry

  • Link to Service Request from report

    Hi,
    I am trying to perform the following:
    In a Contact layout I have created a web applet which show product information.
    (Let's say Product Name, Product Id and Product Catgeory)
    I want to enable the user the following:
    By clicking on the product name, a new Service Reuqest window will be opened, containing the Product that was chosen and the contact details.
    Can it be done?
    Thanks,
    Guy
    Message was edited by:
    Guy

    At this time there is not a direct link from a service request to a opportunity. However, you could use a completed activity under a service request with a Type called "Link" that would link the service request and opportunity. This would allow you to do reporting on these two linked objects.

  • How do I add a Voter to a Review Activity on a Service Request from an AD User Query on the Request Offering?

    I have the query set-up and it works fine, but I cannot map it to anything, I suppose because it is an object and not a simple string. I think I get the option to Map it to related items or configuration items in the Query itself maybe, I seem to remember
    seeing that, but I can not map it to anywhere on the Service Request or Activities in the Request Offering Set-Up.
    However, looking at my Update Object Activity in My Runbook, I do not see how to add a person to a review activity anyway.
    Can someone enlighten me?
    I do not know Powershell well enough to use it with SCSM or Orchestrator yet, and I am not even sure if we have SMLets so keep it simple if possible.
    Thanks for any assistance!

    More info:
    How to add a Reviewer to a Review Activity through Orchestrator
    http://www.scsm.se/?p=895
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    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]

  • Help needed: Handling web service requests from a J2SE application

    I want to write an J2SE application that is able to receive and parse web service requests. I want the application to, when started, start listen for incoming requests on a specific port.
    So far, I have embedded Apache Tomcat and Apache Axis in my application so that they parse the incoming requests and pass them on to my application logic.
    This seems like a very cumbersome way of doing it. I have included an almost full J2EE server in my application just to be able to parse web service requests.
    Is there an easier way? What technologies could I use? Any help would be greatly appreciated.

    Thanks for the help!
    It seems awfully complex though. Couldn't one just
    listen to incoming requests on a socket and use some
    good tool to parse them?
    Of course you could. One of the projects in that list is a 1 class java file. It could listen for requests, then you could parse the posted SOAP messages using JAXP and pass the requests on to your application. This will require a good understanding of SOAP however, and it may end up taking more time than simply using the JWSDP with a slightly beefier server.
    Given that there is only a handful carefully
    specified requests that the application needs to be
    able to respond to it seems overkill to include a
    full servlet enabled server...

  • Ola Hallengren maintenance solution TSQL script not deleting old backup files from my local SQL server

    I have looked on Ola's site (https://ola.hallengren.com/frequently-asked-questions.html) and I did see this:
    DatabaseBackup is not deleting old backup files. What could the problem be?
    Verify that the SQL Server and SQL Server Agent service accounts have full control of the backup directory.
    If that directory is a network share, verify that the SQL Server and SQL Server Agent service accounts have full control of the network share.
    If you are using a proxy account, verify that the account is a member of the sysadmin server role and that it has full control of the backup directory and network share.
    Verify that the file is not locked in the file system; for example, a backup or antivirus software could be locking the file.
    DatabaseBackup has been designed not to delete transaction log backups that are newer than the most recent full or differential backup. This could explain why transaction log backups are not being deleted.
    I followed these instructions and then I right clicked the "sp_delete_backuphistory" job under "SQL Server Agent > Jobs" folder and clicked the "Start job at step ..." option. The job successfully ran, but my .bak backup
    files were still on located on my separate drive partition I use specifically for these backups. 
    The SQL Server and the SQL Server Agent are both using the same AD account. 
    Would any of you SQL gurus out there know how to resolve this?
    Thank you 

    The sp_delete_backuphistory job only deletes the historical info from the backup & restore tables in the msdb database. It does not do anything to the files on disk.
    https://msdn.microsoft.com/en-us/library/ms188328.aspx
    The code to actually purge the backup files from disk is inside the DatabaseBackup stored procedure. It is controlled by using the @CleanupTime parameter for that stored proc. Verify the value for that parameter is low enough to delete your files on disk. The
    value is in hours, and I believe the default is 48 hours. The SQL agent job name usually starts with "DatabaseBackup...".

  • Calling web service request from PL/SQL

    I am trying to create Apex page with stock quote ticker - like what Yahoo has on their page. I have the right web service and have put together a page which works when you submit (created by the wizard). Instead of clicking submit to refresh the page I want to use Ajax to do this but for this purpose I need to know how to call web service from PL/SQL so I can do this in my on demand process. Any ideas?

    George,
    The documented way to call a web service using PL/SQL is to use UTL_DBWS package.
    Here are a couple of links that may be useful:
    http://www.oracle-base.com/articles/10g/utl_dbws10g.php
    http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm
    There is also an APEX package wwv_flow_web_services, but I couldn't find any documentation on it.
    Sima

  • Requested end date must be later than requested start date in Service Request

    Hello Experts
                          I am getting this error in the service request when the date displayed in UI is
    Requested start date-06.05.2014
    Requested End-08.05.2014
    I have searched this error in the SCN, many people  have posted this error . I have not got any satisfactory answer in the posts. I am attaching screenshot in the post.
    I am configuring the service request.Please reply as its urgent
    Thanks all of experts in advance

    Hello Ashik
    I am facing a new problem please help
    I am currently working on service request.I am facing a problem in the date management there.In my service request i have 5 statuses .One of my status is "Pending with consumer".I am using duration settings of service request.By duration settings , i am calculating the duration for which its pending with consumer.I am having 2 response profile one is 24*7 and other is having 9 working hours.In the service request from the SLA configuration i am calculating the escalation date & Time .I need to add the pending with consumer duration with the escalation date and time.I am facing a problem , i am explaining whole problem ..
    Let say if the pending with consumer duration is  1440 minutes(that is 24 hours) .I am adding the minutes to the escalation date through the date rule.
    I am facing problem that if the service profile is 24*7 then there is no problem but if it is having the 9 hours working service profile then after adding the minutes to it the escalation date is changing to 4 days ahead which is wrong.
    I need to add only those minutes for which it is pending with consumer in working hours for the 9 hours service profile
    I need to dynamically determine the working hours from the duration then add it to escalation dates when the status is changed from pending with consumer.
    Please suggest a badi will work or how to do it.Its urgent as i need to give demo.I will appreciate a quick reply.Please reply

  • Purging Service Requests

    I have ran concurrent job "Service Requests Data Purge" in Ebusiness R12 to remove old Service request > 10 years.
    However, my tablesize used is not decreasing.
    Is there another job that needs to be ran to purge "old" data from CRM Service module?

    I wrote a blogpost on how to detect stuck SR using a script, and a script that will kickstart it again (some requests have activities that are stuck in pending which is even worse). Also finds the ones with all completed activities but SR is still active.
    http://codebeaver.blogspot.dk/2014/07/restarting-workflow-scripted.html
    @Thomas
    Didn't know you could use -Value "Closed" as this is an enumeration. Anyways, if you wan't to be language-independent you can use (free from memory - not tested)
    $ClosedStatus = Get-SCSMEnumeration ServiceRequestStatusEnum.Closed # Something like this :D
    $SR | Set-SCSMObject -Propertyhashtable @{Status = $ClosedStatus}
    Cheers,
    Anders Spælling
    Senior Consultant
    Blog:  
    Twitter:   LinkedIn:
    Please remember to 'Propose as answer' if you find a reply helpful

  • Report to show Service Requests that are open on a day selected by the user

    Dunno if I'm being thick, but I can't see how to do this in a report/dashboard...
    The user selects a day and the report pulls back all the Service Requests that were open on that day using the following logic...
    Service Request Opened Date <= Selected date & Service Request Closed Date >= Selected date
    Is this possible?

    You can do this with a report or a dashboard.
    For a report, create a report your subject ares, like Service Request. In Step 3, Create a prompt on your date and choose Column Filter Prompt. Give the prompt a caption ("Enter/Choose Date" for example). Choose the date field for the Filter on Column. Determine how you want the users to select the value and hit OK. My experience has been that you need to let users type in the date, as opposed to choosing from a drop-down list, because of the volume of data and performance reasons, but test it to determine what works best for your needs.
    For a dashboard, you would need to create a dashboard prompt for your dashboard report. You do this by creating a new report on your intended subject area, i.e. Service Request. Instead of creating the report as you normally do, you need to click on the Create Dashboard Prompt button at the top left, just below the Oracle logo. Choose the right reporting area, then complete the prompt details. Don't forget to allow for the prompt in your report.
    I always recommend that you consider purchasing a great book on reporting, written by Mike Lairson. It is an excellent resource for nearly all of your reporting questions. You can find it on amazon.com.
    http://www.amazon.com/Oracle-Demand-Reporting-Osborne-ORACLE/dp/0071593047/ref=sr_1_1?ie=UTF8&s=books&qid=1274893170&sr=8-1
    Good Luck,
    Thom

  • Create Service Request with Category Level4

    Hi,
    I am trying to create service request from Legacy system by calling SSC_SR_CREATE.
    I am not sure on how to fill in the category level 4 data in IT_SERVICE_OS.
    I have tried passing following fields in this structure.
    SUBJECT_PROFILE
    ASP_ID
    CAT_ID
    KATALOG_TYPE
    Service request gets created successfully however on UI I cannot see category data filled at all.
    Plz Help!!!

    Hi Joaquin,
    Thank you for answering. I already tried: I select the line with the email in the Inbox, I press Interact (the account is automatically recognized and I am asked to confirm it), I confirm the account and then I navigate to "Service Request" workcenter: a new Service Request is displayed, with the employee responsible and the customer automatically filled. However, I can see no data regarding any attached email in any of the Service Request tabs (even if I save or select "End").
    After your answer, I tried the same procedure with the "Service Ticket" and noticed that the email is correctly displayed as an Interaction Record under the Business Content tab for the Service Ticket: since you confirmed that this should work also for Service Request, I guess there's something wrong in my customizing settings and now I will search for errors.
    Thanks for your help.
    Best regards,
    Laura.

  • Service Requests get intermittently closed by the workflow account.

    I am noticing that a workflow has changed some service requests from in progress to Completed although there are still pending activities in the Activities area.  Does anyone know how to troubleshoot this?

    Close, but recall that Status is an enumeration. So the value is actually a Guid. There's two ways to set it..with the Guid directly:
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Status$">50C667CF-84E5-97F8-F6F8-D8ACD99F181C</Property>
    or with an MP reference like this:
    <Property Path="$Context/Property[Type='CustomSystem_WorkItem_Activity_Library!System.WorkItem.Activity']/Status$">$MPElement[Name='CustomSystem_WorkItem_Activity_Library!ActivityStatusEnum.Ready']$</Property>
    The $MPElement token automatically references the Guid for that particular mp element..and it's more readable by a human :) (Unless you start memorizing GUIDs for fun..not that I recommend that)

  • Service Request - Working Days

    Hi All,
    Has anyone tried to factor Working Days into their SLA's through analytics reporting?
    For example, a Service Request is raised on Friday and I would like the number of days to close that service request to exclude Saturday and Sunday? Obviously there is no working days calender in CRM On Demand so i'm just going to ignore bank holidays etc for now. Just wondered whether anyone had experience/recommendations with this?
    Thanks
    Oli @ Innoveer

    Oliver,
    While i have not completed anything around this i have extracted the following out of the CRM-On Demand Reporting book that might help.
    Calculating Differences in Business Days
    A common request for date calculations in reports is to determine the number of business days
    between two dates. Answers On Demand does not contain any functions of variables that identify
    business versus non-business days. The following sample code calculates the business day
    difference between open and close dates on service request records. I have included comments
    in the formula that explain what each portion of the formula does.
    (CASE
    /* Convert Sunday to the Business Day Of the Year */
    WHEN DAYOFWEEK("Service Request"."Closed Date and Time") = 1
    THEN (DAYOFYEAR("Service Request"."Closed Date and Time") -
    WEEK("Service Request"."Closed Date and Time")) -
    (WEEK("Service Request"."Closed Date and Time") - 2)
    /* Convert Saturday to the Business Day Of the Year */
    WHEN DAYOFWEEK("Service Request"."Closed Date and Time") = 7
    THEN (DAYOFYEAR("Service Request"."Closed Date and Time") -
    WEEK("Service Request"."Closed Date and Time")) -
    (WEEK("Service Request"."Closed Date and Time") - 1)
    /* Convert Mon-Fri to the Business Day Of the Year */
    ELSE (DAYOFYEAR("Service Request"."Closed Date and Time") -
    WEEK("Service Request"."Closed Date and Time")) +
    (2 - WEEK("Service Request"."Closed Date and Time")) END) -
    (CASE
    /* Convert Sunday to the Business Day Of the Year */
    WHEN DAYOFWEEK("Service Request"."Opened Date") = 1
    THEN (DAYOFYEAR("Service Request"."Opened Date") -
    WEEK("Service Request"."Opened Date")) -
    (WEEK("Service Request"."Opened Date") - 2)
    /* Convert Saturday to the Business Day Of the Year */
    WHEN DAYOFWEEK("Service Request"."Opened Date") = 7
    THEN (DAYOFYEAR("Service Request"."Opened Date") -
    WEEK("Service Request"."Opened Date")) -
    (WEEK("Service Request"."Opened Date") - 1)
    /* Convert Mon-Fri to the Business Day Of the Year */
    ELSE (DAYOFYEAR("Service Request"."Opened Date") -
    WEEK("Service Request"."Opened Date")) +
    (2 - WEEK("Service Request"."Opened Date")) END) +
    /* Adjust for Year Change */
    (365 * (YEAR("Service Request"."Closed Date and Time") -
    YEAR("Service Request"."Opened Date")))
    This wont come out as it should so see my profile and send me a email and i will pass this on.

  • Service request being created in CRM WEB IC

    When an user creates an Interaction Record and then viewed any service request from the view Last five interactions from webIC the system is automatically creating an additional service Request.
    Steps we follow
    1. Open the Interction centre
    2. Search (preferable who has previous service requests created)
    3. Confirm employee.
    4. SC interaction record screen is displayed
    5. Bottom of the page, you see interaction history
    6. Click on any of the service requests
    7. Service request would be displayed
    8. Go back using breadcrumbs
    ---> Problem, in activity clipboard of SC interaction, you would noticean employee request created.
    Can any one help with a solution for this on an urgent basis, the business is being affected very seriously and SAP says they can't help
    Note: Maximum points would be rewarded
    Regards
    Ravi

    Yes,
    The steps you mentioned are correct
    1) Account Indentification
    2) Interaction Record created and displayed
    3) Select Service request from the Last 5 interactions from bottom on page
    4) Selected one of the Service request
    5) In Breadcrumbs dropdown I see
    1) Employee(Service) Request(XXXXXXX) --- the one I selected from Interaction history and being displayed
    2) Interaction Record (XXXX)*
    3) Interaction Record (XXXX)*
    4) Identify Employee
    I click on breadcrumbs to go back or I press END without pressing SAVE
    NEXT
    Open the Interaction Record by searching for the same from INBOX
    The NEW Employee Request (Service request) created is there
    If I use breadcrumbs to go back and repeat steps 1--3 (account Identification to select Service request), it does not create one, it is for only the first time the additional request is created.
    I hope I am clear....
    Regards
    Ravi
    Edited by: Ravi Kakkereni on May 30, 2008 10:19 AM

  • How to delete a specific request from ODS

    Hi all,
    We have an ODS which we're loading invoices from legacy system. In legacy system, there are two tables for invoices. First one is daily records which is archived on last day of each month. As you guess, second table is  for archive records. We need all of the records from  both tables. Because of performance issue , we don't want to load both tables everyday . So we created two transformation. Since there is no delta option, we need to delete the first table request from data targets before extraction. And delete the request from the second table only last day of month. We're created process chain. But there is no option for deleting only the request from a specific data source or transformation. Are there any solution for this?
    thanks,
    Yigit

    Hi,
    Thanks for your code. But is there any function module to delete most recent request from the ODS.
    I had 2 requirements...One in need to delete from ODS & Other one from Cube.
    FM - 'RSSM_DELETE_REQUEST' will be used to delete from Cube only.
    Can please you send FM & ABAP Code to delete request from ODS.
    Thanks in advance.
    Yigit
    Message was edited by:
            Yigit

Maybe you are looking for

  • ITunes won't start up, no error message, appears in task manager

    Hi, I have been running this system since quite a while and haven't had problems with iTunes for a while. I updated to the recent version not to long ago and it worked then once or twice, I even bought a game for the iPod (Tetris)... Now iTunes doesn

  • Problems with multiple TestStand versions on the same computer

    I installed LabVIEW 2014 and TestStand 2014; then later I installed TestStand 2010 SP1 and have been using it since.  (I also updated LabVIEW 2014 to 14.0f1; I think I did that after installing TestStand 2010 SP1.)  Is this "legal?"  I have been seei

  • How to Send biulk mail  for 20,000 people with out blocking the mail server

    Hi .......... ALL I am developing a News module in our project, for this have to write code to send everyday news for 20,000 mail Ids I Developed a code that can send to one Id or multiple. Weather this type of mail sending treated as spam mail or bl

  • WRT160Nv3 problem with blocking traffic using Access Restrictions

    Hi. I want something quite simple. Block Youtube. I go into "Access Restrictions", choose a name for policy 1, enable it, choose the pc from the pc list, but then... if a click Deny, all other options will be disabled (greyed out, can't click nor wri

  • Work space window problem

    Hello, My workspace window is stuck half way at the top of my screen. I can only see half of it and can't reach tthe top of it to resize it or bring it back to full screen. I am working on a mac.  I even tried uninstalling and reinstalling my program