Solved

How to display Sharepoint document version in an Infopath form?

Posted on 2009-04-04
2
818 Views
Last Modified: 2012-05-06
Usually we define the fields in Infopath form and they get promoted when published in Sharepoint. They are then  visible in Sharepoint along with Sharepoint's Version number when versioning is enabled for the doc lib. How to display the Sharepoint document version in an Infopath form published in Sharepoint?
0
Comment
Question by:samy2222
2 Comments
 
LVL 8

Accepted Solution

by:
MelMc earned 20 total points
ID: 24092312
If you notice, there are not Version is not a column in the library. If you go to Version History of a document then check out the URL, you will notice it looks like this:
http://<site>/<subsite>/_layouts/Versions.aspx?list={GUID}&ID=<DocID>&FileName=<docname>&Source=<source>

So, you cannot simply make a receive connection the library to retrieve the information. I do not know of any web services to accomplish this either. I did find this resource that discusses how to accomplish this with Word and SharePoint with custom code.

There is a versions web service that you might be able to retrieve this information from. You would have to know the list GUID for sure, maybe the doc id.

http://www.csharphelp.com/archives4/archive602.html
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Instant VM Recovery 4 85
Sharepoint - Approval workflow question 1 65
InfoPath 2013 4 60
SSRS Total a column based on a calulated field - Report Writer 3.0 12 58
When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now