Update Approval Status of parent Folder based on approval status of folder items

Hi,
I have a SharePoint list which contains folders. Each folder contains one or more items. I wish to update the folder approval status to "Approved" when all the items inside the folder are approved.
The workflow should trigger whenever the approval status of one or more items inside the folder is changed and is expected to check the approval status of all other items inside the folder. If all the items are approved the folder's approval status should
be set to "approved".
I am designing the workflow via SharePoint Designer 2013 and using SharePoint Online 2013 .
Thanks a lot in advance.

Hi,
According to your post, my understanding is that you wanted to update Approval Status of parent Folder based on approval status of folder items.
Per my knowledge,
there is no out of the box way to accomplish this with SharePoint.
Though we can loop the
folder items to set the content approval status, we can not get the parent folder and then set the content approval status.
As a workaround, I recoemend to create event reciever to get set the content approval status of the folder items.
For more information, you can refer to:
How to: Create a remote event receiver
How to create a simple Remote Event Receiver for a Custom List in Office 365 SharePoint 2013 site
Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
Office 365 forum
http://community.office365.com/en-us/forums/default.aspx
Thanks,
Linda Li                
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]
Linda Li
TechNet Community Support

Similar Messages

  • Send Email based on Approval Status

    I'm working on a SharePoint workflow in which data can be entered into a form and an email is then send to a supervisor for approval. I have this working successfully. Next, if this information is approved an email will be sent to one email address,
    if it is rejected it will be send to a different email address. This what I'm having trouble figuring out. What is the best way to accomplish this? I'm using SharePoint online via Office 365 and SharePoint Designer 2013 to create the workflows. I'm
    pretty new to SharePoint so I apologize if this is a simple task. Thanks.

    Hi rdoss,
    You can refer the below thread
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/8e637216-b277-448a-8656-0d73c920e2cb/trying-to-send-email-when-a-content-is-approvedrejected?forum=sharepointcustomizationprevious
    Similar to send notification section in the above thread, based on workflow status you send the email to the respective recipient. 
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Automator/Applescript to Rename files when dropped in folder based on parent folder name

    When a file is dropped in a folder ( ParentFolder/Folder/File.pdf )
    I want to rename the file to ParentFolder_Folder_01.pdf
        --Get folder
        --Get ParentFolder
        --Check for next available number and use it.
        If ParentFolder_Folder_01.pdf exists, try _02
    I automator, I have chosen folder action
    Added 'Get selected finder items'
    I have attempted to modify another sript I found here to no avail.
    on run {input, parameters}
        tell application "Finder"
            set theFolder to input as string
            set theNameOfFolder to name of folder theFolder
            set theFiles to every file in folder theFolder
            set theFolders to every folder in folder theFolder
            my ProcessFiles(theNameOfFolder, theFiles)
            my ProcessFolders(theFolders)
        end tell
    end run
    to ProcessFolders(theFolders)
        tell application "Finder"
            repeat with thisFolder in theFolders
                set theNameOfFolder to name of thisFolder
                set theFiles to every file in thisFolder
                set theFolders to every folder in thisFolder
                my ProcessFiles(theNameOfFolder, theFiles)
                my ProcessFolders(thisFolder)
            end repeat
        end tell
    end ProcessFolders
    to ProcessFiles(NameOfOuterFolder, theFiles)
        tell application "Finder"
            repeat with thisFile in theFiles
                set theSuffix to my grabSuffixOfFile(name of thisFile)
                set name of thisFile to NameOfOuterFolder & "_" & theSuffix
            end repeat
        end tell
    end ProcessFiles
    to grabSuffixOfFile(theFile)
        set text item delimiters to "_"
        return (text item 2 of theFile)
        set text item delimiters to ""
    end grabSuffixOfFile

    Normally it is a bad idea to do things with items that are in the attached folder (earlier OS versions will retrigger folder actions when an item is renamed, for example), and you don't need to use a Get Selected Finder Items action since the dropped items are already passed to your workflow (also note that the input items will be a list).
    It looks like you are trying to use multiple passes to add on the folder names, but you will have less of a headache if you build the base name and just deal with the number suffix.  If I understood your naming scheme correctly, the following script should do the trick - it isn't very fast, but should be OK for a few items at a time.
    on run {input, parameters} -- rename input Finder items (aliases) to name of containing folders
      set divider to "_" -- the divider character between name pieces
      set output to {} -- the result to pass on to the next action
      set counter to "01" -- start suffix at one
      repeat with anItem in the input -- step through each item in the input
      set anItem to contents of anItem -- dereference
      tell application "Finder" to if class of item anItem is document file then -- don't mess with folders or applications
      set {itemParent, itemExtension} to {container, name extension} of anItem
      if itemExtension is not "" then set itemExtension to "." & itemExtension
      set grandParentName to name of container of itemParent
      set parentName to name of itemParent
      set newName to grandParentName & divider & parentName & divider & counter
      set documentNames to my getExistingNames(itemParent)
      repeat while newName is in documentNames -- increment counter suffix as needed
                                            set counter to text -2 thru -1 of ("0" & (counter + 1))
      set newName to grandParentName & divider & parentName & divider & counter
      end repeat
      set name of anItem to (newName & itemExtension)
      set end of output to anItem -- alias still refers to the same file even after renaming
      end if
      end repeat
      return the output
    end run
    to getExistingNames(someFolder) -- get base document names (no extensions) from a folder
      set nameList to {}
      tell application "Finder" to repeat with aFile in (get document files of someFolder)
      set {fileName, fileExtension} to {name, name extension} of aFile
      if fileExtension is not "" then set fileExtension to "." & fileExtension
      set fileName to text 1 thru -((count fileExtension) + 1) of fileName -- just the name part
      set end of nameList to fileName
      end repeat
      return nameList
    end getExistingNames

  • How do you apply rules based on read status?

    I migrated to Mail.app from PowerMail, and one of the powerful options available when creating a filter/rule in PowerMail was the ability to check the status of the message (message is/is not read) before applying the rest of the rule.
    Is there a way to apply this same check within a rule in Mail.app?
    This option is used to create rules that file mail ONLY AFTER it has been read.
    Obviously, the user must apply the rule manually since rules are only fired off when mail comes in, or when one highlights one or more message(s) and then selects the "Apply Rules" option from the contextual menu or from the Message menu.
    What makes this so powerful is that rather than having to manually file every message after you read it you can create rules that check status for read, if it is check to see if it matches other criteria, and if it does, put it in a folder with other like messages.
    Like many people, I have a large number of folders and subfolders into which I file my messages. By creating such a rule, I only have to file a message that matches other criteria once, use that to set up the criteria for the rule, and on subsequent messages that match that criteria, I only have to apply the rule after I have read it.
    I could just file all the messages directly into their appropriate folders, but then I have to keep watch on the subfolders for new mail, rather than just watching the inbox, reading the new mail, then using the Apply Rules item to have the read message checked and then filed based on the criteria that it matches.
    The logic might look like this.
    Is Read status true
    AND
    The subject contains "Intranet"
    THEN
    Move message to /On My Mac/Work Mail/Current Projects/Intranet Project/ mail folder
    THEN
    Stop processing rules.
    Without the ability to test the message's "read status" I have to select the message, right click to select "Move To>" from the contextual menu, then mouse through four sub panes to put the read message in the folder where I want to store it.
    I also cannot select a number of read messages and use the Apply Rules option to allow my filing rules to move any number of read messages to their proper storage folders.
    If anyone has a method for doing this, please let me know. It is the one thing I miss most about PowerMail.
    Message was edited by: rnsyderpsu

    I have been doing some of this, and while it does provide some of the functionality that is lost without the ability to apply rules only to read messages, it is not a complete solution. One of the biggest drawbacks is that it is not easy to selectively limit what new mail shows up the smart mailbox. One approach that works, sort of, is to limit the smart mailbox to only messages from people in my address book. However, not all relevant messages are from people already in my mailbox, so it requires constantly double checking to make sure that things are slipping through the cracks.
    The best thing about being able to apply rules, after receiving them, based on the status of a message is that it puts the control in the users hands. It allows you to selectively apply rules, only when you want to apply them. Rather than always/never, you have the ability to apply rules "sometimes/as needed." It allows for fuzzy logic, rather than hard conditions.

  • Transaction authorization based on document status

    Hi,
    We need to give display only access to end users (i.e specific business roles) based on the status of the document, for e.g. if document status is IN PROCESS the end user should only be allowed to Display the document - how can this be achieved ? Helpful inputs asap plz. Thank you.
    Best Regards.

    Hi Robert,
    Thanks for the quick reply, I will go through the said changes and update the thread accordingly in a day or two. Thanks again.
    Best Regards.
    Still waiting to test the solution, will update the thread soon !
    Regards.
    Edited by: Jacob Raj on May 2, 2011 2:02 PM

  • Workflow - based on idoc status workflow have to trigger

    hi,  i generating IDOC using abap program, when i generated IDOC workflow triggering, my recruiment is based on IDOC status
    workflow have to trigger, eg success status 30 means mail have to go one person, if fail means mail as to go another person. I trying for last two days any one can help me.

    Hi Rajendra,
    You need to trigger workflow only if u require any approval/Rejection.
    If you just need to send a mail on idoc status 30 or fail status, u need not to trigger workflow.
    You can do it with the help of standard FM also. Just search by putting Mail or sendmail* in t-code SE37, you will surely get an relevant FM which you can use in Condition of Status of idoc.
    Hope it will help u.
    Regards
    Nitin

  • Create a Parent EO Based VO.

    Issue - We have a AdvancedTable with a DetailTable. We are doing some calculations based on the data in the detail table.
    For Ex: We have Num1 and Num2 in ChildVO as EO Based Attributes. We have a Result attribute calculated as Num1-Num2. The subtracted value is not getting set in the Result attribute in the Child VO.
    To reproduce:
    1. Create a Parent EO Based VO.
    2. Create a Child EO Based VO with a calculated attribute.
    3. Create a View Link to join the VOs.
    4. On some action on the screen, update the value of the calculated attribute.
    5. The update is not happening.

    any help

  • Hi All, I have question about the iMac operating system. I have the last updated. The problem when I manage the place of the folder windows they are all mixing up. I mean they not on the place where I left them. how to set they stay on the same place. Tks

    Hi All, I have question about the iMac operating system. I have the last updated. The problem when I manage the place of the folder windows they are all mixing up. I mean they not on the place where I left them. how to set they stay on the same place? I know there are different possibilities to set.
    I tried but it not helped for me. What I can do? How and where can set this they stay on their place?
    Thanks.
    laci

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    Regards
    TD 

  • Installed Yosemite update on MacBook Pro retina late 2013 will not boot flashing folder with ?

    I just Installed Yosemite update on MacBook Pro retina late 2013 will not boot flashing folder with ?

    dunno, Lynn--maybe Etrecheck. trying running disk utility to verify the status of your hard drive. That may give you a basic idea. Perhaps tech tool pro.  As for it running hot, I can't say for sure. try shutting it down and using a vacuum clearner +crevice tool around the back of it.  It's been my experience that hard drives usually fail without a lot of warning, luckily you have a backup. Afterwards you can say "Yup, that went bad".  I've done a little research and found out that your MacBook Pro doesn't come with a conventional hard drive as such, but an SSD (solid state device) . It's upgradeable (up to 1 TB ) but not cheaply
    go here for more info (OWC) :http://eshop.macsales.com. For right now, I'd recommend resetting the SMC/PMU, maybe zapping the pram . to do that, reboot, hold down Apple+Option, P+R keys while rebooting. Hold down for 3 chimes, let go and let it boot. as for the SMC thing....
    I'm assuming your battery isn't removeable-shut down computer, plug in MagSafe cable . On built in keyboard, on left side, press Shift-Control-Option and power button at the same time.  release all the keys and the power button. press power button again to turn on computer
    that is all
    John b

  • UPDATE of column in parent only UPDATEs first row in DENORMALIZED child table

    In the Repositiry in Designer 6i, I denormalized DESC1 column to
    pull the value of DESC1 in the parent table. The child table has
    four (4) records with matching foreign keys. When I go into my
    Form and update DESC1 in the parent, only the first of the four
    child DESC1's are updated. Any ideas?
    Thanks,
    Dan

    Dan,
    Sorry, known bug, but should be fixed in next release.
    Have a look via metalink at article <Note:156833.1> this
    explains in detail the problem and a fix.
    The bug no was <1974122>
    regards
    David

  • Automate Creation of Folder based on Filename

    Hi,
    I am a total newbie to Automator, and although I have some programming background, I have not wrapped my brain around how this wonderful tool works yet. I need to perform a task on several hundred files and I need to do it soon, so no time to learn and play with Automator right now.
    I was wondering if someone can give me a true step by step instructions for creating a script that will do the following:
    This is how I would like the flow to behave:
    1. I select a file and run the script (hopefully based on a keystroke). The script will then:
    2. Create a new folder in the same directory as the file.
    3. Name the new folder based on the filename (minus the extension) of the above selected file.
    4. Move the selected file into the new folder.
    So basically I am enveloping the selected file in a new folder that is named the same as the file itself (minus the extension).
    Thank you in advance.

    OK, I reworked and tested it, so I think I've got all the oddities found. I wound up just using an AppleScript, since about the only thing Automator was used for was getting Finder Items (and it didn't do so well at that). Paste the script into the Script Editor and save it as an application (make sure the Startup Screen option is unchecked). You can either drop items on it or double-click it, in which case it will prompt for items. Document files are the only things processed, and packages/bundles are handled correctly (getting subfolders will not go into them), so you don't have to worry about things like application bundles and .rtfd files.
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    -- make new folders with the name of document files, then move them into their respective new folders
    -- the following properties affect the operation of the script
    property GetFiles : false -- get individual files?  true chooses files, false chooses folders
    property GetSubFolders : true -- get contents of subfolders?  true gets contents of subfolders, false skips them
    property DestinationFolder : "" -- if a folder path is specified, it is used as the destination for file moves
    on run -- application double-clicked
    if GetFiles then
    choose file with prompt "Choose a file:" default location (path to desktop) with multiple selections allowed without invisibles
    else
    choose folder with prompt "Choose a folder:" default location (path to desktop) with multiple selections allowed without invisibles
    end if
    open the result
    end run
    on open TheItems -- items dropped onto the application
    if DestinationFolder is not missing value then try -- verify destination path
    DestinationFolder as alias
    on error
    set DestinationFolder to (choose folder with prompt "Invalid destination folder path - where do you want to move the items?")
    end try
    set SkippedItems to {} -- this will be a list of skipped items (errors)
    set TheFiles to {} -- this will be a list of items to process
    repeat with AnItem in TheItems -- expand folders
    set AnItem to the contents of AnItem
    set FileInfo to (info for AnItem)
    if (folder of FileInfo) and not (package folder of FileInfo) then -- a folder
    if GetSubFolders then
    repeat with SubItem in (ListFiles from AnItem)
    set the end of TheFiles to (contents of SubItem)
    end repeat
    else
    tell application "Finder" to (get files of AnItem) as alias list
    set TheFiles to TheFiles & the result
    end if
    else
    set the end of TheFiles to AnItem
    end if
    end repeat
    repeat with MyFile in TheFiles -- do stuff with the resulting items
    set {TheClass, TheName, TheExtension, TheContainer} to (GetTheNames from MyFile)
    if TheClass is «class docf» then try -- just document files
    tell application "Finder"
    if DestinationFolder is not missing value then
    make new folder at DestinationFolder with properties {name:TheName}
    else
    make new folder at TheContainer with properties {name:TheName}
    end if
    move MyFile to the result
    end tell
    on error ErrorMessage -- the folder already exists, permissions, etc
    log ErrorMessage
    set the end of SkippedItems to (TheName & TheExtension)
    -- set the end of SkippedItems to (AnItem as text) -- the full file path
    end try
    end repeat
    if SkippedItems is not {} then -- handle skipped items
    set AlertText to "Error with moving files to folders"
    if (count SkippedItems) is greater than 1 then
    set TheMessage to ((count SkippedItems) as text) & space & "items were skipped:"
    else
    set TheMessage to "1 " & "item was skipped:"
    end if
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
    set {SkippedItems, AppleScript's text item delimiters} to {SkippedItems as text, TempTID}
    display alert AlertText message TheMessage & return & SkippedItems
    end if
    end open
    to GetTheNames from SomeFile
    get a class, name, extension, and container from a file path
    parameters - SomeFile [mixed]: a file path
    returns [list] - item 1 [constant]: the class of the file object
    item 2 [text]: the name of the file
            item 3 [text]: the .extension (if no extension, the value returned is "")
    item 4 [alias]: the containing folder of the file
    set SomeFile to SomeFile as alias -- the Finder likes aliases
    tell application "Finder"
    set TheClass to class of (get properties of SomeFile)
    set TheName to name of SomeFile
    set TheExtension to name extension of SomeFile
    if TheExtension is in {missing value, ""} then
    set TheExtension to ""
    else
    set TheExtension to "." & TheExtension
    end if
    set TheName to text 1 thru -((count TheExtension) + 1) of TheName -- just the name part
    set TheContainer to (container of SomeFile) as alias
    end tell
    return {TheClass, TheName, TheExtension, TheContainer}
    end GetTheNames
    to ListFiles from SomeItem
    return a list of files contained in SomeItem, drilling down into subfolders (not packages)
    parameters - SomeItem [mixed]: the item to get the contents of
      returns [list]: a list of aliases
    set {FilesList, SomeItem} to {{}, SomeItem as text}
    set FileInfo to (info for SomeItem as alias)
    if (folder of FileInfo) and not (package folder of FileInfo) then -- a folder
    try
    tell application "Finder" to set SubItems to (items of folder SomeItem)
    on error
    return {}
    end try
    repeat with AnItem in SubItems -- drill down
    set FilesList to FilesList & (ListFiles from AnItem)
    end repeat
    else
    set the end of FilesList to (SomeItem as alias)
    end if
    return FilesList
    end ListFiles
    </pre>

  • Retention Policy and Managed folder based retention

    What is difference between "Retention Policy/ Policy Tags" and " Managed Content Settings"?
    In my setup , my managed folder folder become general folder after following steps
    1. Created Managed folder
    2. Created managed content settings for IPM.post and IPM.Appointment with retention action "Delete and Allow recovery".
    3. Created managed policy and applied to 1 mailbox, and this is working properly
    But After that,
    1. Created 3 retention tags(1 for inbox, 1 for sent, 1 personal).
    2. Created retention policy combining these 3 tags.
    3. Applied to SAME mailbox
    4. Ran 'ManagedFolderAssitant'
    **After this, Managed folder become general outlook folder.
    So, cant I have "Managed folder based retention for managed folders" and General retention for "Inbox,Sent"

    Exchange 2010 RTM introduced Retention Policies as the successor to the Message Records Management (MRM) technology introduced in Exchange 2007. MRM was the successor to Mailbox Manager Policies in Exchange 2003. Message Records Management is called MRM
    1.0 and Retention Policies is being called MRM 2.0 for short. MRM 1.0 as well as MRM 2.0 are both available in Exchange 2010. Only difference is we can manage Retention Policies from the EMC and EMS, but the Managed Folder Mailbox Policy is only Managed from
    the EMS through cmdlets in Exchange 2010 SP1.
    It completely depends on your requirements when to use MRM 1.0 and when to Use MRM 2.0.
     Certain new features are added in MRM 2.0 (Retention Policy) which allow us to manage our mailbox email items at very granular level. But if we are still happy with earlier version MRM 1.0 then we can continue using Managed folder mailbox
    Policy in Exchange 2010.
    [ Note: If we are Using the Retention Policy (MRM 2.0) then we can view the expiry of  each and every email items of the folders on which the retention Policy is tagged and this can be only view from OWA and Outlook 2010, But this feature
    is not available  for  Managed Folder Mailbox Policy (MRM 1.0) ]
    We cannot use the Base Folder only switch in MRM 2.0 because it is TAG  specific (DPT, RPT, and PPT) not Managed Folder specific.
    Managed folder Mailbox Policy is folder specific this would be the major difference.
    Refer to this link :
    Retention policies vs Managed folders

  • OutLook 2007 Macro to create Folder Based on Received Date

    Dear All,
    Is it possible to create a macro which will automatically create a folder based on Received Date of the mail and then group these mails (in folders) based on the received month….
    Can someone help me with the VBA Coding for Outlook 2007, where I select a folder and the macro creates folder’s and subfolder based on the received month and date-wise folder (based on the received date of the mail).
    Thanks...

    Yes, it is possible, but why would you want to split up your emails like that?
    Note that you can also do a simply search query to find all emails received within a certain month. For instance, when you want to see all emails which you received in July 2013 type the following in the Search Field:
    received:(July 2013)
    For more information about using Search within Outlook see:
    http://www.howto-outlook.com/howto/searchcommands.htm
    Robert Sparnaaij
    [MVP-Outlook]
    Outlook guides and more: HowTo-Outlook.com
    Outlook Quick Tips: MSOutlook.info

  • How to omit records based on a status code

    I am trying to select records based on a status 'N' or 'A' by a certain date as long as by the chosen date there is not another status given to the same course like 'D' or 'X'.
    Here are some sample data...
    CREATE TABLE #TEST
    (ID VARCHAR(7),
    COURSE VARCHAR(10),
    CURRENT_STATUS VARCHAR(1),
    STATUS_DATE DATETIME)
    INSERT INTO #TEST
    (ID, COURSE, CURRENT_STATUS, STATUS_DATE)
    VALUES
    ('0020541','AAAA-1000H', 'X', '2013-08-27 00:00:00.000'),
    ('0020541','AAAA-1000H', 'N', '2013-08-26 00:00:00.000'),
    ('0020541','BBBB-2000H', 'D', '2013-11-04 00:00:00.000'),
    ('0020541','BBBB-2000H', 'N', '2013-08-27 00:00:00.000'),
    ('0020541','CCCC-3000H', 'D', '2013-09-11 00:00:00.000'),
    ('0020541','CCCC-3000H', 'N', '2013-08-26 00:00:00.000'),
    ('0020541','DDDD-4000H', 'A', '2013-08-25 00:00:00.000'),
    ('0020541','EEEE-5000H', 'N', '2013-08-26 00:00:00.000')
    SELECT * FROM #TEST
    DROP TABLE #TEST
    If the query is to determine how many records with a status of N or A up to and incl August 26, 2013, I should see 4 records... AAAA-1000H, CCCC-3000H, DDDD-4000H, EEEE-5000H
    If the query is to determine how many records with a status of N or A up to and incl October 1, 2013, I should see 3 records... BBBB-2000H,  DDDD-4000H, EEEE-5000H
    ...and so on.
    Any help is appreciated.

    I am trying to select records based on a status 'N' or 'A' by a certain date as long as by the chosen date there is not another status given to the same course like 'D' or 'X'.
    Here are some sample data...
    CREATE TABLE #TEST
    (ID VARCHAR(7),
    COURSE VARCHAR(10),
    CURRENT_STATUS VARCHAR(1),
    STATUS_DATE DATETIME)
    INSERT INTO #TEST
    (ID, COURSE, CURRENT_STATUS, STATUS_DATE)
    VALUES
    ('0020541','AAAA-1000H', 'X', '2013-08-27 00:00:00.000'),
    ('0020541','AAAA-1000H', 'N', '2013-08-26 00:00:00.000'),
    ('0020541','BBBB-2000H', 'D', '2013-11-04 00:00:00.000'),
    ('0020541','BBBB-2000H', 'N', '2013-08-27 00:00:00.000'),
    ('0020541','CCCC-3000H', 'D', '2013-09-11 00:00:00.000'),
    ('0020541','CCCC-3000H', 'N', '2013-08-26 00:00:00.000'),
    ('0020541','DDDD-4000H', 'A', '2013-08-25 00:00:00.000'),
    ('0020541','EEEE-5000H', 'N', '2013-08-26 00:00:00.000')
    SELECT * FROM #TEST
    DROP TABLE #TEST
    If the query is to determine how many records with a status of N or A up to and incl August 26, 2013, I should see 4 records... AAAA-1000H, CCCC-3000H, DDDD-4000H, EEEE-5000H
    If the query is to determine how many records with a status of N or A up to and incl October 1, 2013, I should see 3 records... BBBB-2000H,  DDDD-4000H, EEEE-5000H
    ...and so on.
    Any help is appreciated.
    I guess I didn't understand your problem. Not sure if this might help you.
    SELECT * FROM #TEST
    where CURRENT_STATUS IN ('N','A') AND STATUS_DATE<='2013-08-26'
    AND STATUS_DATE NOT IN(Select STATUS_DATE from #test
    where CURRENT_STATUS IN ('D','X'))
    SELECT * FROM #TEST
    where CURRENT_STATUS IN ('N','A')
    AND STATUS_DATE<='2013-10-01'
    AND STATUS_DATE NOT IN(Select STATUS_DATE from #test
    where CURRENT_STATUS IN ('D','X'))
    - please mark correct answers

  • How can I see the status of Rejected Documents sent for Approval from KM

    I have a folder which is Approval Enabled. Now on sending a document to the approver ,if he rejects it from UWL ,how can i see it in KM ? Thank you for any input provided in advance . In UWL I cannot see it .

    You can see if a document is rejected from KM folder in which the document is there .From the document level(which you have sent) click on the arrow and select Details . A new Window opens up .Now go to Actions>>approval .You will see the name of the approver who has rejected your document .Now you can resend it or skip it . This is how you do it .

Maybe you are looking for