Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
3 replies
Subscribers
7 subscribers
Views
1199 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Is there any rule to find out the username of person who uploaded the first ver
Raviteja Varma Jampana
A Score Level 2
over 10 years ago
Is there any rule to find out the username of person who uploaded the first version of document (person who uploaded a new document with new doc id) when there are more than 1 versions for that particular document? Any help regarding this is appreciated. Thanks in advance....
OriginalPostID-106311
OriginalPostID-106311
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 10 years ago
The document(ri!id,"lastUserToModify") function will only tell you the last person who uploaded a new version of the document but there's no option to retrieve the original version's creator.
You can easily create a custom function that will take the version number and the document ID and return the creator (where -1 would be the current version and 1 the original version)
public String getVersionCreator(ServiceContext sc, ContentService cs, @Parameter(required=true) Long id, @Parameter(required=true) Long version ) {
Content content = cs.getVersion(id, version);
return content.getCreator();
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 10 years ago
The document(ri!id,"lastUserToModify") function will only tell you the last person who uploaded a new version of the document but there's no option to retrieve the original version's creator.
You can easily create a custom function that will take the version number and the document ID and return the creator (where -1 would be the current version and 1 the original version)
public String getVersionCreator(ServiceContext sc, ContentService cs, @Parameter(required=true) Long id, @Parameter(required=true) Long version ) {
Content content = cs.getVersion(id, version);
return content.getCreator();
}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data