Check for preview in Workday Studio
Posted on • #posts #workdayintegrations #tilToday I learned how to check if a Workday studio is running in the preview environment.
Saving this here since I don't know if I'd ever remember context.customerId even a few days from now.
props["tenant"] = context.customerId;
// true/false if the tenant is preview
props["inPreview"] = (props["tenant"].toString().indexOf("preview") > 0) ? true : false;