I'm not familiar with Premises and maybe this is my mistake (i'm pretty new in Retool AND Javascript). If anybody can provide me some help here it would be amazing
Since I'm using Retool I always had to put all the quote if I want the query to work.
As an example I did what you told me and removed the additionalScope variable to test it :
Indeed but it is not the issue, the getCurrentSessionRecord is still triggered and the additionalScope variable is not transferred to the query (my issue).
I will use recordData variable the day I get the additionalScope working (and I will then have data in sessionRecord variable ).