How to send an email notification if no document in a library has been touched in 6 months

The customer wants to receive an email notification if not a single document inside a document library has been not updated in 6 months. They don't want to get notifications based on single documents. They care only about the document library
as a whole. I know you can use the list settings to send notifications or start workflows if a single document but how would you do this on an entire library?
Get it?
Is it possible?

You could run something like this in powershell to check the last modified date and send an email if nothing has been modified in the previous 6 months.
if (!(Get-PSSnapin Microsoft.sharepoint.powershell -ErrorAction SilentlyContinue))
{ Add-PSSnapin Microsoft.Sharepoint.powershell }
$web = <website>
$list = <document library>
$items = ((get-spweb $web).lists[$list]).items | where {$_['Modified'] -gt (get-date).AddMonths(-6)}
$folders = ((get-spweb $web).lists[$list]).folders | where {$_['Modified'] -gt (get-date).AddMonths(-6)}
if (($items.count -eq 0) -and ($folders.count -eq 0)) {
Send-MailMessage -SmtpServer 'smtpserver' -from '[email protected]' -to '[email protected]' `
-Subject 'List items not modified in previous 6 months' -BodyAsHtml `
-Body "List $($list) has not had any files updated in previous 6 months"

Similar Messages

  • Does anyone know how to send an email to a "Group" on a device that has been updated to iOS-6, without having to individually add each recipient?

    Pre-update, you used to be able to send an email to one of your predefined "Groups" by merely typing the "Group" name into the address field.  Post-update, this no longer appears to work.  Post update, typing the "Group" name into the address field gets you absolutely nothing.  Now I seem to have to add each individual recipient into the address field, something I thought developing predefined "Groups" would save me from having to do each and every time.  Does anyone know of any viable solutions for this?

    You have to add each one, 1 at a time using the + button.

  • Anyone know how to send automatic email notification in OA?

    Any where I can find a resource about how to send automatic email notification?
    say, samples, reference?
    please advice, thank you very much

    integrate your application with oracle workflow and send a notification from the mailer.
    details of working with workflow is there in the dev guide
    Thanks
    Tapash

  • I tried to send an email and attach a photo and color wheel has been spinning forever

    I tried to send an email and attach a photo and color wheel has been spinning forever. Clearly it is still trying to send the message and it's been 45 minutes. I can't use my mail anymore.

    First off, did you check your internet conection? Your network connection might not be very strong. Try powering your device and turning it on again, see if that works.

  • How to send html email notification in bpel

    hi gurus,
    i want to send html email notification from bpel.
    before, i already successful send html email with attachment, but when i send an email without attachment, then the body message will turn into a plain text.
    as i check from the email accepted, email with attachment will have a mime type "text/html" but if no attachment then it will be "text/plain"
    from the bpel configuration, by default the mime type already set to "text/html; charset=UTF-8", below is the sample configuration in my bpel process
    [quote]
    <copy>
                                    <from>string('text/html; charset=UTF-8')</from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content/ns10:MimeType</query>
                                    </to>
                                </copy>
    [/quote]
    i think this suppose to be a easy configuration, but i'm not sure whether i miss something in configuration the email process or this is a bugs in bpel.
    environment:
    linux
    jdev 11.1.1.6
    do u guys ever facing a same problem or have a solution to this ? please throw some light.
    thanks
    ===
    update, i found a temporary solutions.
    so i add a attachment from the process design, and then i change it from the source.
    [quote]
    <copy>
                                    <from>
                                        <literal>
                                            <Content xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">multipart/alternative</MimeType>
                                                <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                    <MultiPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                        <BodyPart xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService">
                                                            <MimeType xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
                                                            <ContentBody xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
                                                            <BodyPartName xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"/>
                                                        </BodyPart>                                            
                                                    </MultiPart>
                                                </ContentBody>
                                            </Content>
                                        </literal>
                                    </from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content</query>
                                    </to>
                                </copy>
    <copy>
                                    <from>string('text/html; charset=UTF-8')</from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content/ns10:ContentBody/ns10:MultiPart/ns10:BodyPart[1]/ns10:MimeType</query>
                                    </to>
                                </copy>
                                <copy>
                                    <from>string('your message')</from>
                                    <to variable="varNotificationReq"
                                        part="EmailPayload">
                                        <query>ns10:Content/ns10:ContentBody/ns10:MultiPart/ns10:BodyPart[1]/ns10:ContentBody</query>
                                    </to>
                                </copy>
    [/quote]
    make sure you put the mime type multipart/alternative into the email payload content. by default, when you add attachment, it will generate mime type multipart mixed automatically.
    if you don't change it to multipart/alternative, your email will show a attachment, but actually your email doesn't contain any attachment.
    and then for the message and mimetype make sure you have that ns10:bodypart, because this email already been set as a multipart email.
    when you add attachment, by default it will generate 2 body part, first one is for the body message and the second one is for the attachment. since i only want to use the body message only, then i have to erase the second bodypart
    with this workaround, i can send a html email without attachment perfectly.
    but i have to take note, when i updating the email process from process design, then the source will be generated again automatically, and the edited one will be replaced.
    thanks.

    Make sure you upload all of the images used in your email to a server you control. Then, change your image paths to point to those uploaded images with absolute links.
    You will get marked as spam if you attempt to send images as attachments to a large list of recipients and most email clients won't download images to begin with, so make sure your html email makes sense with broken pictures.
    CSS support is spotty across email clients, if you use css, make sure it's inline, not embedded in the <head> or externally linked in the <head>. Some email clients strip out the <head> section entirely.
    Basically, you need to design your html email as if you haven't moved out of the 90's yet, as far as web design is concerned, in order to get maximum cross client compatibility.
    Then, when you're ready, I would suggest using a service like www.icontact.com or www.constantcontact.com if your subscriber list is anywhere over 100 or so recipients.

  • How to send alert email notification through graphical mapping ?

    Hi,
    I want to send an email notification whenever there is an exception raised while doing graphical mapping.
    However my requirements are as follows :
    1. We want to use email adpater sending emails
    2. We don't want to go for BPM approach, to achieve the above requirement
    3. We don't want to connect to any alert framewok.
    I appreciate your early reply.
    Thanks
    Ganesh

    Hey
    >>whenever there is an exception raised while doing graphical mapping.
    as said earlier this is not possible without configuring alerts.
    yeah,if u know the reasons beforehand that why exceptions can be be triggered in mapping,then u can use conditional receiver determination,for e.g suppose u know that you will get a mapping exception if value of tag <OrdersID>=000,then u can use this condition in conditional receiver determination and send a mail to concerned party,but this won't work if u don't know beforehand as to under what conditions the exception will be  triggered in mapping.
    i would vote for configuring alerts as its the most suited way to handle this
    thanx
    Aamir

  • JDev - how to send a email notification

    Hi,
    I am working with ADF Framework, JSP, and Toplink. How do I send an email on a specific date? The email address and the date to send the email will be in a DB column.
    I think that I should compare the date in the DB column with the System date, and when they're the same, the email will be sent.
    Would appreciate if someone could give me some insights. Thanks!
    Lin

    Hi Lin, you can use a ServletContextListener along with Timer and TimerTask in order to schedule a task, in this case a send mail task. Obviously you should use JavaMail API for mail sending.
    First of all, you should config the Servlet Listener in web.xml so it will run when your App Server starts.
    You may change some of this code to meet your requirements.
    web.xml
    <listener>
    <listener-class>ServletListenerTimer</listener-class>
    </listener>
    public class ServletListenerTimer implements ServletContextListener {
    private java.util.Timer timer = null;
    public void contextInitialized(ServletContextEvent event) {
    timer = new java.util.Timer(true);
    timer.schedule(new SendMail(event.getServletContext()), 0, 60 * 60 * 1000);
    public void contextDestroyed(ServletContextEvent event) {
    timer.cancel();
    public class SendMail extends TimerTask {
    private static final int C_SCHEDULE_HOUR = 18;
    private static boolean isRunning = false;
    private ServletContext context = null;
    public SendMail(ServletContext context) {
    this.context = context;
    public void run() {
    Calendar cal = Calendar.getInstance();
    if (!isRunning) {
    if (C_SCHEDULE_HOUR == cal.get(Calendar.HOUR_OF_DAY)) {
    isRunning = true;
    doMailTask(); // Send Mail task here...
    isRunning = false;
    } else {
    context.log("task still running...");
    Hope this helps.
    Regards,
    Luis R.

  • I entered the wrong address in my contacts and now I cannot erase it .  When I send an email this wrong addres still appears although it has been erased in my list of contacts..

    In my list of contacts I have entered a wrong address.  I was able to erase it from that list BUT  when I send an email it still appears on the list there and I cannt erase it.  What shall I do ?

    I have discovered this site which claims the ability to do what you might want. I have no personal experience of it!
    http://www.icopybot.com/itunes-backup-manager.htm

  • When I go to send an email I get a message saying that it has been placed in the outbox because the email address does not allo relaying. This happens intermittently

    When I want to send an email, I. Get a message saying that the email has been placed in the outbox because the email address that I am sending it to does not allow relaying? This is intermittent and often later the email is sent.

    SEARCH!!!
    http://lmgtfy.com/?q=iphone+server+does+not+allow+relaying

  • Is it possible to get email notifications if ONE column in "View Responses" has been updated? (as opposed to initial submission notifications)

      We are using it to track designs and one column changes "status".  If that one column is changed can we setup notifications for that?
    Currently, we are only getting email notifications when a form is initially submitted.
    Thanks,
    Nicole

    You can fetch data from multiple lists in ListViewWebpart, this can be possible through Content Query web part or Custom Web Part using visual studio but in that case you can not get the standard SharePoint funcationality for list (which is available in
    ListViewWebparts).
    No OOB filter available for multi-choice column, you also have to go with custom solution to achieve this.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • How to send the email alert to some users (defined users hasn't post document to a library within a specified time frame)

    Hi,
    Native alert on a document library can setup to email to the predefined user when any changes on the document.
    However, I would like to setup a document library and alert me when
    [email protected] [email protected]
    [email protected] hasn't yet put a document to the library by 2014-07-01 (e.g today is 2014-06-26). The reminder email will send to
    [email protected] [email protected] on 2 days before the dead line (ie. 2014-06-29) because
    [email protected] and [email protected] hasn't put their file to the library on or after 2014-06-29..
    Thanks

    Hi,
    http://stackoverflow.com/questions/17571562/creating-email-alert-workflow-for-sharepoint-file-libraries
    http://stackoverflow.com/questions/18868479/how-to-send-automatic-email-notification-to-user-two-days-before-expiry-date
    http://social.msdn.microsoft.com/Forums/en-US/acb12dd2-d6a5-4b7e-b233-037558bfa2e5/start-workflow-x-days-before-expiry-date?forum=sharepointcustomizationlegacy
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Send different email notifications when a request is rejected/completed

    Hi Friends,
    I have developed a SOA composite in OIM 11g. And I am getting the same email notification when a request is fully completed or when it is rejected by an approver. How to send diffrerent email notification when a request is completed and when it is rejected by an approver.

    There are multiple ways in which you can do it.
    1. Modify your SOA composite and change the notification properties in the .task. Here change the status of the event and configure different notifications for different events.
    2. Use the Request Status change plugin in OIM to send the notification and remove all notification from SOA composite.
    3. Use explicit notification service in the SOA composite and attach the notification service component at appropriate places in the SOA workflow. Additionally remove the notification configuration from the .task
    -Bikash

  • How to send a delayed notification email?

    How to send a delayed notification email?
    I have a requirement to send an email to the service requestor 2 days after the main fulfillment task is completed.  I know I can create a task that auto-completes using the Dummy adapter, but is there a way to make it auto complete after a certain amount of time has elapsed?  I was thinking about creating a second fulfillment task that would send this email upon completion, but I can't figure out how to delay its start or its end. 

    Hi Tylor,
    James is onto a potential approach here. However, the only way I know of that could work is to use the Scheduled Start feature. This would require that you compute/project the start date of the auto-complete task before the delivery moment begins.
    You would need to do a date calculation and then store the projected date in a hidden field. You could then have your auto-complete task fire on that computed date, using the Scheduled Start feature.
    The wrinkle here, of course, is t

  • When I send an email notification that the form has been sent I want the receiver to get a copy of the actual filled out form not a ling to the data, how can I make this happen?

    When I send an email notification that the form has been sent I want the receiver to get a copy of the actual filled out form not a ling to the data, how can I make this happen?

    Hi,
    you can find documentation for Designer under this website
    http://help.adobe.com/en_US/livecycle/10.0/documentation.html#task=4,5&module=2
    In Designer you can use the JavaScript API of Acrobat.
    So the Devnet for Acrobat is also a good source.
    http://www.adobe.com/devnet/acrobat.html
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf

  • How do I send a email notification with PL/SQL to Check for Columns

    I want to be able to use PL/SQL to check my columns and makes sure that all required columns were populated, and if any were not populated to send an email notification.
    Thanks
    Hank

    I would still suggest that adding appropriate constraints (well, logical constraints) to the table is the right way to go.
    When you get the file back, you load the data into the table. If the constraint is satisfied, the data is loaded. If the constraint is violated, the loader gets an error, writes the affected data to another table, to another file, etc. That way, the data in the database is always correct and you have a log of the rows that were bad.
    create table t( status varchar2(10), cost number );
    create or replace trigger trg_t
    before insert or update
    on t
    for each row
    begin
       if :new.status = 'Approved' and :new.cost is null
       then
         raise_application_error( -20001, 'Cost must not be null if status is approved' );
       end if;
    end;
    SCOTT @ hp92 Local> insert into t values( 'Reject', 1 );
    1 row created.
    SCOTT @ hp92 Local> insert into t values( 'reject', null );
    1 row created.
    SCOTT @ hp92 Local> insert into t values( 'Approved', 2 );
    1 row created.
    SCOTT @ hp92 Local> insert into t values( 'Approved', null );
    insert into t values( 'Approved', null )
    ERROR at line 1:
    ORA-20001: Cost must not be null if status is approved
    ORA-06512: at "SCOTT.TRG_T", line 4
    ORA-04088: error during execution of trigger 'SCOTT.TRG_T'If you don't want to touch the loader, you can rename the table, create a view with the same name, and use an INSTEAD OF trigger on the view to populate the real table or a reject table.
    Either way, you're better off, in general, rejecting invalid records than trying to expend a lot of effort reporting on them.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

Maybe you are looking for

  • Is it possible to upgrade a G4 Xserve with an ISO image of a Leopard DVD?

    I have a G4 Xserve (tray load) with only a CD drive.  Leopard is on DVD only. I created an ISO image of the Leopard DVD but it will not work. Not sure why. I copied it to the Hard Drive of the Xserve and also tried it from an external drive (not boot

  • Shuffle not recognized by Windows

    I have read all the bulletins, tried all the tricks, but I can't get my computer to recognize the Shuffle so I can download music. I reinstalled the software, updated it, tried all four USB ports, and tried all the hints from the bulletins, but the b

  • Unable to replicate both Numeric and alpha numeric vendors records from R3

    Dear all, In our ECC 5 environment, we have some vendors who master record numbers that are numeric internally assigned i.e 7000000 or 23000000 and some alphanumeric externally assigned i.e SmallBusiness1 or Grinad10. This is posible as you may know

  • How to re-download songs?

    Here is the problem, I bought a song (Starlight by Muse) and about in the middle of the song it switches to the end of the song and after that it plays the rest of the beginning of the song at the end. So parts of the songs are switched around. Would

  • Not able to update the partner with a new partner during change order ?

    Hi Experts, I want to update a partner which is present in a sales order with a new partner. When i create a new order, i ll give partner function ship-to-party and partner no 1 for this partner function. And from a fucntion module, i want to change