LouiseT Posted October 22, 2021 Share Posted October 22, 2021 Once I’ve captured an asset and site details via progressive capture, is it possible to then use those details in an email template from the request? I’d hoped I could map them to custom fields in the custom form step of the capture, but I can’t see that it’s possible. Link to comment Share on other sites More sharing options...
Steven Boardman Posted October 27, 2021 Share Posted October 27, 2021 @LouiseT this should be possible: Site - In your progressive capture, if you are using the default site form, then the site will be added to the request automatically and this variable is available to use in the email template variable picker. If you are using a custom form in progressive capture and a custom question, if you name that custom field h_Site this will map the answer to the site field on the request and again will be available to use in the email template variable picker https://wiki.hornbill.com/index.php?title=Mapping_Fields_from_Customised_Forms The same applies for assets, if you are using the default asset form, then the selected assets will automatically added to the request. In order to use these in the email template, you can use the business process engine to put the asset values into a custom field, which will be available in the variable picker in the email templates. Use the Get Assets option Follow this with an Update Request > Custom Fields and use the variable picker to inject the output param - assets into your chosen custom field. If you are not using the default asset form in progressive capture, but instead a custom form and a custom field which is using the asset picker, again you can simply set the field id to be a custom field like the sites example above (eg h_custom_a) Finally ensure you use a get request details node in your business process before using a node to send an email using an email template, this will ensure that you have loaded all the latest values from the request (site, assets) and that there updated values are available to be injected into the email template Hope that helps Link to comment Share on other sites More sharing options...
LouiseT Posted November 9, 2021 Author Share Posted November 9, 2021 Hi @Steven Boardman Apologies for a slow reply. Thank you, this is a huge help. Taking it a bit further, is it possible to use the site postcode and address in the email template? Many thanks Louise Link to comment Share on other sites More sharing options...
Steven Boardman Posted November 9, 2021 Share Posted November 9, 2021 @LouiseT no problem. It's not currently possible to get the site's address or postcode to pass into an email template as a variable. We do have a Get Site information option in the business process but unfortunately the output params don't include the address or postcode, if they did we could achieve this. I've asked the development team to consider adding these two attributes of the site to this node, or directly to the variable picker in the email template, we'll reply once there is an update. Steve Link to comment Share on other sites More sharing options...
Steven Boardman Posted November 10, 2021 Share Posted November 10, 2021 @LouiseT the option to make site attributes available directly via the email template variable picker will be added, i don't have a timeframe on this but we will post back once it's been added and is available. Link to comment Share on other sites More sharing options...
James Ainsworth Posted January 4, 2022 Share Posted January 4, 2022 Hi @LouiseT I just wanted to let you know that the new additional site variables are now available when designing an email template. The site variables will all begin with RequestSite when looking at the variable picklist. Hope that helps. James Link to comment Share on other sites More sharing options...
LouiseT Posted January 13, 2022 Author Share Posted January 13, 2022 Brilliant! Thanks @James Ainsworth Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now