Get workflow form url - InfoPath Dev Sign in | Join | Help in Browser Forms InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Browser Forms » Get workflow form url Get workflow form url Last post 05-28-2009 05:33 AM by swathip. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 05-27-2009 01:20 AM mpjtaylor Joined on 02-21-2008 Posts 7 Get workflow form url Reply Contact Hi is there anyway you can aquire the URL of the library or list the the workflow form is being run on to populate a form field.i.e. http://sitename/site/library Thanks Marcus 05-27-2009 12:31 PM In reply to warrtalon Joined on 12-13-2007 Denver, CO Posts 980 Re: Get workflow form url Mark as Not AnswerMark as Answer... Reply Contact Can you explain exactly what you mean by workflow form as it pertains to InfoPath? I know how to do a lot of things related to this topic, but I'm not actually sure what you're asking. Clayton Cobb || SharePoint MVP || Clayton's SharePoint MadnessPlanet Technologies || Federal Partner of the Year (2005-2010) || SLG Partner of the Year (2010) 05-28-2009 01:23 AM In reply to mpjtaylor Joined on 02-21-2008 Posts 7 Re: Get workflow form url Mark as Not AnswerMark as Answer... Reply Contact We have developed a custom workflow which has its own form for configuration designed in Visual Studio. Want to be able to populate one of the form fields (location) to default to the library. so need to be able to get the url of the current library as in http://domain/site/libraryCheersMarcus 05-28-2009 05:33 AM In reply to swathip Joined on 10-30-2007 India Posts 487 Re: Get workflow form url Mark as Not AnswerMark as Answer... Reply Contact Hi, Use the following code line to get the url of the form that is being opened. string url = thisXDocument.Solution.URI; It will give the url like http://<servername>/<sitename>/..../template.xsn Swathipwww.ggktech.com Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
Hi is there anyway you can aquire the URL of the library or list the the workflow form is being run on to populate a form field.
i.e. http://sitename/site/library
Thanks
Marcus
Can you explain exactly what you mean by workflow form as it pertains to InfoPath? I know how to do a lot of things related to this topic, but I'm not actually sure what you're asking.
We have developed a custom workflow which has its own form for configuration designed in Visual Studio. Want to be able to populate one of the form fields (location) to default to the library. so need to be able to get the url of the current library as in http://domain/site/library
Cheers
Hi,
Use the following code line to get the url of the form that is being opened.
string url = thisXDocument.Solution.URI;
It will give the url like http://<servername>/<sitename>/..../template.xsn