how do you identify the current workflow item? - InfoPath Dev
in

InfoPath Dev

how do you identify the current workflow item?

Last post 03-28-2009 11:03 AM by MrWonderful. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-20-2009 09:04 AM

    how do you identify the current workflow item?

    How can you identify the current workflow item in code behind of an infopath form.

  • 03-28-2009 11:03 AM In reply to

    Re: how do you identify the current workflow item?

    This is all there is to it in a task form. The current list item is in the task list and contains the workflow listid and item id.          

     

      SPListItem currentListItem = SPContext.Current.ListItem;

                if (currentListItem != null)
                {
                    object wfListId = currentListItem["ows_WorkflowListId"];               

                    object wfItemId = currentListItem["ows_WorkflowItemId"];

                }

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.