- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2021 01:19 PM
I just wanted to ask, can we call a mail script in Quick Messages?
Navigate to Quick Messages
in the body, I am trying to call a quick message script:
and the script goes like:
to my understanding, this script would just fetch the phone number of the current logged in user and display it in the email body, but when I am trying to use this script as explained above, it just shows me the coded line: ${mail_script:phone_number_ea}
My real question is, is it even doable? like can we call a mail script in quick messages?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2021 08:34 PM
Hi
in quick messages any mail script calls are ignored.
As a workaround you could simulate the mail script behaviour by implementing a business rule that would replace placeholders with some output:
Business Rule
- Table: sys_email
- Active: true
- When: "before" on "Insert" and "Update"
- Condition: "Type" = "sent-ready"
In the script section you have to implement some code that
- searches for any placeholders you had defined before, for example
- {Signature}
- {Phone Number}
- replaces that placeholders with corresponding contents
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2021 08:34 PM
Hi
in quick messages any mail script calls are ignored.
As a workaround you could simulate the mail script behaviour by implementing a business rule that would replace placeholders with some output:
Business Rule
- Table: sys_email
- Active: true
- When: "before" on "Insert" and "Update"
- Condition: "Type" = "sent-ready"
In the script section you have to implement some code that
- searches for any placeholders you had defined before, for example
- {Signature}
- {Phone Number}
- replaces that placeholders with corresponding contents
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-28-2021 12:24 AM
Hi
Did my reply answer your question?
If so, please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
If not, please tell me what you are still missing!
Kind regards
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2021 12:38 PM
or you can configure a Client Template instead. Can't achieve this using Quick Message. Scripts are not supported there. Also, gs.getUser().phone is not a valid They will have to do a glideRecord to sys_user table and then get the user object and then get phone number.