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
5 replies
Subscribers
7 subscribers
Views
1823 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Afternoon all, I am currently trying to set up a new custom email sen
garethm
over 8 years ago
Afternoon all,
I am currently trying to set up a new custom email sender that takes a pv! (type: email address) as the sender (which is fine) - however, I am also trying to have the emailDisplayName also definable from a pv... the documentation only demonstrates how to set up items with static labels.
Business case is to allow users to select (via a form) whether the email should be send from their email address, or from their departmental group box.
forum.appian.com/.../Configuring_Custom_Email_Senders.html
Is my requirement possible, and if so, any idea how!?
TIA,
Gareth
OriginalPostID-195125
OriginalPostID-195125
Discussion posts and replies are publicly visible
0
Ramy Jaber
Appian Employee
over 8 years ago
It is not possible to dynamically define the email Display name with a process variable.
The following work around should be viable:
1. the user's input on the form can be saved into a PV
2. Use a logic XOR gate leading to two separate Send Email Nodes (one configured for Department box and one configured for personal email address)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
garethm
over 8 years ago
OK - thanks, but that is not an option as each person has a different team (and - just to complicate matters further - some people have multiple teams!)
If it is not possible, I will just go with a generic display name with the address being dynamic.
Gareth
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Cichy
Appian Employee
over 8 years ago
You can have a Generic Email Sender and hardcoded pv name in your custom sender xml. Then in your process model you need to define the variable of the same name, populate and use that for more dynamic behavior.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
garethm
over 8 years ago
Thanks Mike - could you explain in more detail, please....
in the custom email-address-config.genericSender.xml I have:
<addresses>
<address name="pv_genericSender">
<expression>=pv!genericSender</expression>
</address>
</addresses>
and then the sender displayName in the resource bundles as
address.pv_genericSender.displayName= Crawford & Company
address.pv_genericSender.emailDisplayName= Crawford & Company
where would the pv! for the sender name go ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Cichy
Appian Employee
over 8 years ago
The pv just needs to be defined and populated in the process model calling the Send Email node.
Additionally, you need to add an item into the collections tag that corresponds to the the address name definition.
I would also change the display name in the properties file to indicate to the designer what the sender actually is.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel