AnsweredAssumed Answered

Using 'Get(AccountName)' in a script

Question asked by lourensjoubert on Apr 16, 2018
Latest reply on Apr 16, 2018 by lourensjoubert

Hi FM Experts,

 

Please could someone tell me what I've got wrong with this seemingly simple script intended to find records with an empty TimeElapsed field that was CreatedBy the current User?

 

Screen Shot 2018-04-16 at 13.44.24.png

 

The CreatedBy field is set up as follows:

Screen Shot 2018-04-16 at 13.34.53.png

 

It works as intended when the user is Admin (the account in which I'm doing the development).

 

For other (iOS) users, it does not set the TimeSlip::CreatedBy search field with that current user's AccountName — instead it sets the field as Admin.

 

Put differently (in lay speak), it appears as if the Get(AccountName) in the script grabs the AccountName Admin whilst in script mode, and 'hardwires' Admin into this search field for all users. Hope that makes sense.

Outcomes