Getting the username of the verification operator automatically before export

  • 56 Views
  • Last Post 08 March 2018
  • Topic Is Solved
PhinkTad posted this 15 January 2018

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 ?

 

Order By: Standard | Newest | Votes
Ekaterina posted this 16 January 2018

Hello,

We may offer you to create a service field that contains “Document last editor info” point on the Data Source tab.

  • Liked by
  • PhinkTad
daniel.salazari8 posted this 08 March 2018

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

 

Close