- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2025 07:14 AM - edited 02-05-2025 07:15 AM
Hello,
Based on the "taxi company" field's choice list value, I want to return a different email address on Email Client Script > Recipients > To field.
Any ideas how can this be done?
One note related to this.
I have already created a script include to call from To field.
Script include:
For some reason this does not work. I see that gs.info is not displayed either.
Any ideas why? (my app is a custom app, so the scope is not global).
Best,
Firat
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 07:10 AM
Are the email client template and the script include in the same scope? The script include is not accessible form all application scopes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 07:57 AM
Hi @Sheldon Swift ,
I made the script include accessible from all scopes and then used the scope API before calling, then it worked fine.
But it is still a mystery why it does not work when it is accessible only from the scope application 😕
Best,
Firat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 07:57 AM
Hi @Sheldon Swift ,
I made the script include accessible from all scopes and then used the scope API before calling, then it worked fine.
But it is still a mystery why it does not work when it is accessible only from the scope application 😕
Best,
Firat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 08:04 AM
Did you confirm that the template is in the same scope as the script include? The call to your script includes comes from that scope.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 08:07 AM - edited 02-06-2025 08:07 AM
Yes, they are:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 07:23 AM
Hello again,
Okay, I implemented the same solution on DEV and it worked just fine, which means that indeed it was sandbox related. However, it is weird because even when I turn on "Sandbox callable" it did not work.
Thanks a lot for all help!
Best,
Firat