Expand my Community achievements bar.

How to retrieve a windows/system username ?

Avatar

Level 3

Hi everyone,

Is there any javascript property or method to retrieve the system/windows username.

Thanks in Advance.

4 Replies

Avatar

Level 10

Hi,

You can!

When you drag the workflow fields tot he form, there will be a hidden AWS_ASSIGNED_ID field..

which will have the principal id of the user as per the MySql definition..

pass this value to a web service and get the user name from the tb_principal_entity table from MySql

All these can be done thought Javascript and a simple web service coding..

Nith

Avatar

Level 3

Hi Nith,

Thanks a lot !! for the suggestion.

Can we do only with Javascript, without using webservices and MySql. And what are the workflow fields ?

Thanks for the help !!

Avatar

Level 10

Workflow fields are the one which are mandatory in order to submit your form

to the Adobe workflow..

And Javascript is designed specifically for client side scripting ; Though

you could perform some asychronous calls, you can't achieve all with just

JS..

Or explain me your scenario clearly, i will try to help you..

Nith

Avatar

Level 3

Hi Nith,

Thanks for the reply.

The requirement is, by clicking on submit by email button, in MS Outlook 'CC' address the windows/system username should display.

Thanks in Advance !!