How can I display a SP 2010 out of the box workflow's task assignees via powershell?

There are days where one of the 250+ workflows at the site has attempted to send email to someone no longer at the company.
I would like to find a way to go through the farm and display all the list URLs that have workflows, and the mail addresses associated to the workflows.
This way I can track down the workflows that need to be updated to remove the missing users.
I have started a bit of script to do this. In my script, I just had a site collection - I figured that if I can get that to work, then surely wrapping another loop for the rest of the farm won't be bad. 
However, for some reason, I am not seeing the output that I expected to show the mail addresses.
I am hoping a different set of eyes might see what I am missing. It was my understanding that the AssociationData property was XML that contained information about the assignees for tasks, the carbon copy list, etc.
Maybe I misunderstood something that I read?
$outLoc = "d:\temp\wfdata.txt"
$web = Get-SPWeb -Identity "http://myfarm/sites/it/"
foreach ($list in $web.Lists)
 $associationColl=$list.WorkflowAssociations
 foreach ($association in $associationColl)
       $association.AssociationData | Out-File $outLoc
$web.Dispose()
I want to thank you for the helpful tips that so often appear on this list. They help me when I am reading over old threads to figure out what to do. I am hoping that tips on this thread will likewise be helpful.

Hi,
With
SPWorkflowAssociation.AssociationData property, we can get the assignees’ information. Your script can
be able to retrieve a XML format data which contains the user name we need:
So the next step would be getting the user name by parsing the XML data we got.
The two links below will show how to parse XML with PowerShell:
http://stackoverflow.com/questions/18032147/parsing-xml-using-powershell
http://blogs.technet.com/b/heyscriptingguy/archive/2012/03/26/use-powershell-to-parse-an-xml-file-and-sort-the-data.aspx
With the user name, we can get the
Email property of an user with the scripts as the link below provided:
http://davidlozzi.com/2012/03/07/using-powershell-to-access-sharepoint-sites/  
Best regards
Patrick Liang
TechNet Community Support

Similar Messages

  • Where is the SP 2010 out of the box workflow status value stored?

    I created an out of the box Approval - SharePoint 2010 workflow (TEST1) on a custom list. When I created this out of the box workflow, I specified a name for the task (TEST1 Tasks) and history (TEST1 History) list. 
    The workflow is creating tasks, sending emails, and the task emails lead me to a screen where I can approve or reject the requests.
    However, TEST1 - the list that contains the items created - doesn't have a status column.  The TEST1 Tasks has a status column. But I would prefer the people working with the workflow just look at TEST1 and not the Tasks or History lists.
    What is the preferred way to create one of these list workflows so that the admins only have to look at the specific tasks that have been submitted and they can see which have been approved or not?
    Thank you
     

    Thank you for your reply. Initially, I didn't have content approval turned on, had workflow approval turned on, but didn't have a status column. I also had an error in the history list that the status could not be created.
    When I turned on the content approval, then I got a status column, but now my list has a warning across the top telling the user that their request won't be public until approved.
    I don't really WANT a document approval workflow. But I don't see how to set up what I do want.
    What I need is a simple custom list - a few lookup columns, the rest static data columns, that describe an action that is being requested. That request (ala the list item) is what needs to be approved or rejected. There is no publishing needed in this workflow.
    The approval workflow was the closest I could see for setting up such a simple request workflow.

  • How Can This Computer Be Used Right Out Of The Box With NO WORD PROCESSING!

    I just want to know why I can't do homework on a $1099 laptop!

    Welcome to the discussions!
    As mentioned, virtually no PC comes with MS Office on it - and that's a good thing. Most people do not need all the features of Office in a standard home setting and including it would just increase their price needlessly. Students who turn in homework through email will usually need it since teachers really don't want to be bothered with multiple file formats. I can't blame them.
    Check out your school's bookstore. It is likely that they have Office for Mac at a great price. If not - or if you want a different program - use OpenOffice or Apple's own iWork.

  • How can I display all of my bookmarks along the left side of my browser window like earlier versions of Firefox?

    I like the bookmarks on the left side of the screen. I don't want to be navigating through a tree of all of my various bookmarks. How can I display all of my bookmarks along the left side of my browser window like earlier versions of Firefox?

    View > Sidebar > Bookmarks (Ctrl+B)
    Press F10 or tap the Alt key to bring up the "Menu Bar" temporarily if the Menu Bar is hidden.
    *https://support.mozilla.com/kb/how-do-i-use-bookmarks

  • How can I get a stripped screw out of the bottom of my iPhone?? I need help, How can I get a stripped screw out of the bottom of my iPhone?? I need help

    How can I get a stripped screw out of the bottom of my iPhone?? I need help, How can I get a stripped screw out of the bottom of my iPhone?? I need help

    Try asking at ifixit.com. The iPhone is not considered user servicable. You're not going to get much help on an Apple sponsored forum.

  • HT4623 I want to give my iPAD to my wife. How do I restore it to its out-of-the box status?

    I want to give my iPAD to my wife. How do I restore it to its out-of-the-box state?

    mbmessier wrote:
    ...  How do I restore it to its out-of-the-box state?
    See here  >  http://support.apple.com/kb/HT5661
    More info...
    ERASE / Clear All Data
    See  Erase your device  Here  >  http://support.apple.com/kb/HT4137
    Go to Settings > General > Reset > Erase all content and settings
    Also... See the wjosten post here...
    https://discussions.apple.com/message/20294697

  • Best Practices in SharePoint 2010 ( Out of the box feature vs Custom Web Part, development )

    Hi
    How do we differentiate on when to allow custom web parts and when to use out of the box.
    What are the performance issues involved when we deploy a custom web part into the SharePoint server. 
    Why do some companies prefer to allow only out of the box features, and no custom work is done?

    SharePoint is a powerful, flexible server product that can provide a wealth collaboration environment right out of box.
    Best answer for your question is depend upon your requirement. Sometime Out of Box features will solve all the problem with little designing. But sometime your requirement need a Custom Web part / solution.
    With OOTB implementation the big advantage is easy to trouble shoot & fix the issues. You will also found tons of blogs on internet for OOTB features. In custom development, its hard to troubleshoot & identifying whether its SharePoint issue or Custom
    code issue.
    check the below article for more ideas.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/1e7845ef-61e0-4d01-bb6c-92519e6d7139/sharepoint-2010-outofbox-best-practices?forum=sharepointgeneralprevious
    http://www.cdh.com/media/articles/Pages/SharePoint-out-of-the-box---To-customize-or-not-to-customize.aspx
    Master List of SharePoint 2010 On-Premises Custom Development Best Practices
    http://i.zdnet.com/whitepapers/Quest_WPW_SharepointDev_Custom_US_KS_v3.pdf
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • How much drive space it utilized straight out of the box of a 15" MB Pro?

    I'm looking to get a MB Pro w/ Retina, but struggling with paying $500 to go from 256GB of on board storage to 512GB.  I realize its specially designed for the system and all that, but it still seems a bit bloated as far as price.  So in order to make a more informed decision I was wondering how much of the 256GB storage is utilized by the base image from Apple, like I open the box turn it on and check the drive properties how much free space is left before I make any changes/additions to the system?  I saw that OS X Mountain Lion only requires 8GB of storage space and coming from the Windows world I'm not sure how accurate that is.  All I need on board storage for is my software apps (Lightroom, PS Elements) and a bit of temporary storage for photos until I can transfer them to the NAS at home.  I would need about 100-150GB of available storage typically to be safe for a trip/session.
    So any insight to exactly how much disk (I know its not a disk) is left available straight out of the box would be greatly appreciated.  Oh and I'm in Afghanistan right now otherwise I'd just go to the Apple Store and check for myself.  Looking forward to coming over to the Apple world, but hoping I can do it for $500 less.

    Aw, man, you'd love some of the stuff you can do with the CS6 suites! I use Lightroom as well, but also PS, InDesign, Illustrator, and I'm just beginning to learn Dreamweaver and Fireworks. I love layers in PS - allows for so much control and creativity!
    You'll have plenty of room - glad to see that you've already thought ahead in re storage and backup. I just think that the price Apple charges for SSD is absurd. 256GB will be something that you can live with for a long, long time.
    Good luck with your new Mac,
    Clinton

  • Can I use my iPhone 6 out of the box to take photos, before syncing it with my computer?

    I will be receiving a new iPhone 6 at the beginning an upcoming trip and would like to use the great camera on it to take photos. The problem is I won't have my computer with me during this trip. Will I be able to use my iPhone right out of the box to take photos, and when I sync my iPhone for the first time will I risk losing those photos? Thank you for the help.

    Will I be able to use my iPhone right out of the box to take photos
    Once you have activated the iPhone with a sim inserted
    when I sync my iPhone for the first time will I risk losing those photos?
    Yes unless you transfer Photos off iOPS device to your PC/Mac
    see this
    Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support

  • Out of the box workflow failed on start when started programatically

    I have an approval workflow (out of the box) associated with a list and need to start it for some items programmatically when some conditions are met. 
    My application runs under an account which is a farm admin. I do have another user dedicated to start workflows. I'm using the code below but it always results in a 'failed on start'  with these errors
    2/27/2015 4:54 PM
    Workflow Cancelled
    System
    Account
    Workflow 'WorkflowName' was canceled by System Account.
    2/27/2015 4:54 PM
    Error
    System
    Account
    'WorkflowName' failed to start.
    Code is : 
    SPUserToken userToken = null;
                using (SPSite site = new SPSite("SiteName"))
                    using (SPWeb web = site.OpenWeb())
                        site.AllowUnsafeUpdates = true;
                        web.AllowUnsafeUpdates = true;
                        userToken = web.AllUsers["WorkflowAccount"].UserToken;
        site.AllowUnsafeUpdates = false;
                        web.AllowUnsafeUpdates = false;
                using (SPSite site = new SPSite("SiteName", userToken))
                    using (SPWeb web = site.OpenWeb())
                        site.AllowUnsafeUpdates = true;
                        web.AllowUnsafeUpdates = true;
                        SPWorkflowManager workflowManager = web.Site.WorkflowManager;
                        SPList list = web.Lists["LibName"];
                        SPListItem item = list.Items[1];
                        SPWorkflowAssociationCollection associationCollection = list.WorkflowAssociations;
                        foreach (SPWorkflowAssociation association in associationCollection)
                            if (association.Name == "WorkflowName")
                                association.AutoStartChange = true;
                                association.AutoStartCreate = false;
                                association.AssociationData = string.Empty;
                        site.WorkflowManager.StartWorkflow(item, association, association.AssociationData);
        break;
    site.AllowUnsafeUpdates = false;
                            web.AllowUnsafeUpdates = false;
    Is there any requirement on who can create the workflow? I can control who creates if I absolutely have to
    Any help/clues/directions appreciated.

    Hi LNFei,
    To troubleshooting the issue, I recommend to follow the steps as below:
    1.Start the workflow manually to check whether it works.
    2.Use another account not System Account to check whether it works.
    3.Publish the workflow as a different user (rather than System Account).
    4.Deactivate and Reactive the “Workflow” Feature.
    5.Check other workflows on other lists/libraries could work well.
    6.Create a simple workflow having only one activity which will log history only, check if it works well.
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Problem with the MenuBar and how can i delete a own component out of the storage

    Hello,
    I opened this thread in the category "Flex Builder 2", but
    under this category my questions fit better.
    I have a problem with the MenuBar and a question to delete a
    component out of storage.
    1. We have implemented the MenuBar, which was filled
    dynamically with XML data.
    Sporadically it will appear following fault, if we "mousover"
    the root layer.
    RangeError: Error #2006: Der angegebene Index liegt
    außerhalb des zulässigen Bereichs.
    at flash.display::DisplayObjectContainer/addChildAt()
    at mx.managers::SystemManager/
    http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()
    at mx.managers::SystemManager/addChild()
    at mx.managers::PopUpManager$/addPopUp()
    at mx.controls::Menu/show()
    at mx.controls::MenuBar/::showMenu()
    at mx.controls::MenuBar/::mouseOverHandler()
    Here a abrid ged version of our XML to create the MenuBar:
    <Menuebar>
    <menu label="Artikel">
    <menu label="Artikel anlegen" data="new_article" />
    <menu label="Artikel bearbeiten" data="edit_article" />
    <menu label="Verpackung">
    <menu label="Verpackung anlegen" data="new_package" />
    <menu label="Verpackung bearbeiten" data="edit_package"
    />
    </menu>
    <menu label="Materialgruppe">
    <menu label="Materialgruppe anlegen"
    data="new_materialgroup" />
    <menu label="Materialgruppe bearbeiten"
    data="edit_materialgroup" />
    </menu>
    </menu>
    </Menuebar>
    It is a well-formed XML.
    2. Delete a component out of storage
    We have some own components (basically forms), which will be
    created and shown by an construct e.g.
    var myComponent : T_Component = new T_Component ;
    this.addChild(myComponent)
    Some of our forms will be created in an popup. On every call
    of the popup, we lost 5 mb or more, all childs on the windows will
    be removed by formname.removeAllChild();
    What cann we do, that the garbage collector will dispose this
    objects.
    Is there a way to show all objects with references (NOT
    NULL)?
    I have read in the Flex Help, that
    this.removeChild(myComponent) not delete the form and/or object out
    of the storage.
    Rather the object must be destroyed.
    It is sufficient to call delete(myComponent) about remove
    this object out of the storage as the case may be that the
    garbage-collector remove this object at any time?
    Or how can I destroy a component correctly. What happens with
    the widgets on this component e.g. input fields or datagrids?
    Are they also being deleted?
    Thanks for your help.
    Matze

    If you mena the "photo Library" then you cannot delete it.
    This is how iphone handles photos.  There are not two copies.  There a re simply two places from which to access the same photos.  ALL photos synced to iphone can be accessed via Photo Library.  Those same pics can be accessed via their individual folder.

  • In alv , how can i  display message like 'NO records in the table'in spool

    When there are no any records , i have to display a message in spool like 'No records exist'.
    how can i do this?/
    Thanks,
    Suresh.

    hi check this..
    if the final internal table is empty then you will show like this..
    if not it_final[] is initial.
    call function reuse_alv_list_display.
    elseif.
    message s000 with 'no data available for the selection'.
    endif..
    regards,
    venkat

  • How can i display a CheckBox in one of the column of ALV?

    Hi All,
    I want to dispaly a one  column  of CHECKBOXes in my ALV  Report.so i take attribute CHK_BOX TYPE CHECKBOX in the context.when i testing it doesn't showing any checkboxes.just i shows a ordinary column with name checkbox.
    How can i resolve it?
    Regards,
    Ravi

    Hi Ravi,
    Do the following to set any alv column as Check box .
    create an instance of ALV component
      DATA:
        lr_salv_wd_table_usage TYPE REF TO if_wd_component_usage,
        lr_column_settings     TYPE REF TO if_salv_wd_column_settings,
        lr_input_field         TYPE REF TO cl_salv_wd_uie_input_field,
        lr_chk_box             TYPE REF TO cl_salv_wd_uie_checkbox,
        lr_table_settings      TYPE REF TO if_salv_wd_table_settings,
        lr_salv_wd_table       TYPE REF TO iwci_salv_wd_table,
        lr_column              TYPE REF TO cl_salv_wd_column.
      lr_salv_wd_table_usage = wd_this->wd_cpuse_alv( ).
      IF lr_salv_wd_table_usage->has_active_component( ) IS INITIAL.
        lr_salv_wd_table_usage->create_component( ).
      ENDIF.
      lr_salv_wd_table = wd_this->wd_cpifc_alv( ).
      wd_this->alv_config_table = lr_salv_wd_table->get_model( ).
      lr_table_settings ?= wd_this->alv_config_table.
    * Set ALV as editable
      lr_table_settings->set_read_only( abap_false ).
    * Get Column reference
      CALL METHOD wd_this->alv_config_table->if_salv_wd_column_settings~get_column
        EXPORTING
          id    = 'CURR_ISO'
        RECEIVING
          value = lr_column.
    * Create a checkboc
      CREATE OBJECT lr_chk_box
        EXPORTING
          checked_fieldname = 'CURR_ISO'.
    * Set the cell editor type to the check box.
      CALL METHOD lr_column->set_cell_editor
        EXPORTING
          value = lr_chk_box.
    and to set the check box as editable, do the following.
    lr_table~IF_SALV_WD_TABLE_SETTINGS~SET_READ_ONLY( abap_false ).
    Hope this helps.
    Regards,
    Sravan Varagani

  • Flash Builder 4.6 - How can I keep unit test classes out of the finished swc?

         I have a library of code I'm building and I'm working on unit testing but I have a major issue. When my finished swc compiles no matter what I do it includes the unit test classes as part of the intellisense if you load the swc via flash. The classes aren't really in the swc since if you just try and import them they'll come up undefined. They only appear to go into the intellisense for the swc. Does anyone know how can I keep this from happening in the finished source? Currently my folder setup is like this in flash builder.
    src\main - source documents for the library to get compiled
    src\mock - mock class area for unit testing
    src\test - unit test classes
         In the project Properties panel > the first tab of my Flex Library Build path I have selected only the src\main folder for the classes to inlude in the library. No other folder paths are selected.
    The "Flex Library Build Path" doesn't change my results with any setting.
    Thanks,

    Mel Riffe,
    Here's a Help topic about compiler options in Flash Builder: http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb524b8220812e5611f28f-7fe7. html
    For information on using mxmlc, the application compiler, to compile SWF files from your ActionScript and MXML source files, you can see: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fcc.html
    Hope this helps,
    Mallika Yelandur
    Flash Builder Community Help & Learning
    Adobe Systems Incorporated

  • How can you display a dynamically loaded vi to the Web Server?

    I am working with LabView 6.1 and the Web Server. I can call a subvi and have it display on a remote machine using a browser with no problem. But what I would like to do is dynamically load and run a vi and have it display on the remote computer using only a browser. I have tried a small example of a front panel that invokes the run vi method (and fp.open prop) on another vi when a button is pressed, but the invoked vi is displayed only on the local computer. Is there any way of viewing dynamically loaded vi's on a remote machine without having a copy of LabView running on it?

    If i understand your question correctly, you want to monitor vi that are dynamically loaded on a remote machine without having LabVIEW installed on the machine from witch you want the monitor. I don't think it's possible how ever a good reference book would be Internet applications in LabVIEW. You can find it on BARNES&NOBLE.
    Hope i could help

Maybe you are looking for