Hello,
I would like to get the windows username of the person who exported a document.
What's the best approach to get this value ?
Hello,
I would like to get the windows username of the person who exported a document.
What's the best approach to get this value ?
0 out of 0 found this helpful
Comments
2 comments
Hello,
We may offer you to create a service field that contains “Document last editor info” point on the Data Source tab.
I have tried using the document last editor info but sadly that was not a proper solution because if your document is 100% ready to export, no user would have edited that document, leaving that field empty during export
I was told by the support team to use this line in a rule script
this.Field("UsuarioActual").Text = FCTools.CurrentUserSession.UserName;
then add this event handler script "after document state changed"
if (ChangedStates.Has(3) ) //check whether the document was verified
{
Document.Field("RetencionRecibida\\UsuarioActual").CheckRules();
}
Please let me know if this solution suits you because it didn't work all the time for me.
Thanks
Please sign in to leave a comment.