cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

Is there a way I can get current version of the form at runtime?

Hi,

 

Is there a way I can get current version of the form at run-time (Add new/edit form)?

 

Thanks,

Avinash

Labels: (3)
0 Kudos
Reply
4 Replies
Highlighted
Automation Master
Automation Master

Re: Is there a way I can get current version of the form at runtime?

Do you mean like a version number to display on the form itself?

0 Kudos
Reply
Highlighted
Not applicable

Re: Is there a way I can get current version of the form at runtime?

Yes, Exactly

0 Kudos
Reply
Highlighted
Not applicable

Re: Is there a way I can get current version of the form at runtime?

And I'd like to display the version in a notification in the workflow too, and the reference field I found in Item Properties always returns 1.0 which is obviously not correct.

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: Is there a way I can get current version of the form at runtime?

The Item Properties - Version reference will display the version number of the Item and not the form.

Because the Form itself is not saved or appended to the actual item you are editing, or new item that doesn't exist yet, or added to the List itself, but in the Nintex content database you will not be able to pull the current version number. That information is stored in the database. You could use the Enterprise SQL control and pull the information from the database, but I do not recommend that you query the nintex database directly just as you wouldn't the sharepoint database.

I do not know of a REST or webservice call that you could use to get this information either, but that may exist somewhere.

I did find that the version number showing in the Version popup when you click the button in the ribbon goes to

_layouts/15/NintexForms/VersionHistory.aspx?&listId=%7BD9A26439-054C-467C-87CA-2C1654405530%7D&contentTypeId=undefined&IsDlg=1\u0026ShowAdvLang=1

Which means it is complied by an application page that is looking up this information.

It doesn't look like you can reference the form version number directly without an extra activity.

0 Kudos
Reply