Showing posts with label SharePoint Workflow. Show all posts
Showing posts with label SharePoint Workflow. Show all posts

Tuesday, March 12, 2013

Get SharePoint Users List from Infopath Form People Editor

Today I am doing some R & D with Infopath form & workflow. I want to pass multiple users from Infopath to workflow for multiple users' task creation.

I have searched on google but not getting proper result for above. That's why I have decided to write this post for other user's help.

See below image for visualization.

 

 








Now, fire button click & add below code.

        public void btnGetUsers_Clicked(object sender, ClickedEventArgs e)
        {
            // Write your code here.
            XPathNodeIterator sentToIterator = MainDataSource.CreateNavigator().Select("/my:myFields/my:reviewersGroup/pc:Person/pc:AccountId", NamespaceManager );
            string result = "";
            int count = 1;
            foreach (XPathNavigator selectedNode in sentToIterator)
            {
                if (count < sentToIterator.Count)
                {
                    result += selectedNode.InnerXml +"; ";
                    count++;
                }
                else
                {
                    result += selectedNode.InnerXml;
                }
            }
        } 
Happy SharePointing...!!!

Wednesday, March 28, 2012

Error occurred in deployment step 'Activate Features': Unable to locate the workflow's association data.

Error :  "Error occurred in deployment step 'Activate Features': Unable to locate the workflow's association data. To restore the association data to the workflow, restart the workflow settings wizard by selecting the workflow node in Solution Explorer and then clicking the ellipsis button (…) on one of the properties in the Properties window that has an ellipsis button"

Solution : Goto Visual Studio 2010 > Right Click on Workflow file > Property Window  >  Click on any one of (History List/ Target List / Task List ) ...
Then, one popup window will opend and fill required details.

Happy SharePointing...!!!