The workaround would be to set this in every page and instance where the services are called instead of the resource, but that's painful with our setup.
Thanks for the screenshot! Sorry you're still running into issues here I believe it's happening because there is additional JS transformation on the current_user object. I'm guessing if you only pass {{current_user.email}}, it'll work That said, I realize that doesn't solve your use case. I can reach out to our team about supporting JS here
@DavidM Can you try refactoring the example you previously shared to the below syntax? Our internal engineers reviewed this issue & we want to confirm that this is now working:
Hmm, its a bit strange that appName works from the resource page, but inEditorMode doesn't. Do you want it to say "" when triggered from the resource page? Does it help if you add some logic to check if retoolContext is defined? Maybe something like retool({{retoolContext?.appName}}):{{current_user.email}} {{(retoolContext?.inEditorMode) ? ' (edit)' : ''}}