Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
7 subscribers
Views
5043 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Any SAIL function to send Email
nellurus
over 8 years ago
I have a scenario like among so many users available in a grid i can assign roles to each user (One at a time).
On updating his role..i need to send a mail to him.
I should do this to all users in the same User Input Task (SAIL Form) without navigating to next node in Process Model;
So i have to do this in SAIL itself.
Is there any SAIL Function (smart service) to send Email?
OriginalPostID-250465
Discussion posts and replies are publicly visible
0
rodgraham
Certified Lead Developer
over 8 years ago
I don't believe so, but you could start a process model from your sail form to handle the sending of the emails
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chandu
A Score Level 2
over 8 years ago
As suggested by rodgraham, Design a process model for Sending Email with parameters,
In the SAIL form you can Asynchronously start the process model using a!startProcess().
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nellurus
over 8 years ago
Thank you very much rodgraham and thank you Chandra
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 8 years ago
Just to add - starting a process model might be the approach you prefer, but slightly simpler is that when the user clicks the button to "save" the user role change, you have the form submit and loop back into itself - to the user it would appear that they did not leave the form, but in the mean time your process model could send email, do other updates, etc.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nellurus
over 8 years ago
Good Idea mschmitt. Thank you
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
davids735
over 8 years ago
You could also save users who need to be sent emails into an array variable. You can then set the "Send Email" node in process model to run multiple times. There's an option to run once for each element in an array, and you just input the array of users who need emails. It will take that variable as a parameter as if it were only one value for each instance of that node.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
davids735
over 8 years ago
You could do that to automate sending the emails out after you submit the task, then end the process when they're all done.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel