1

Each property detail page has a Request a viewing button which opens a form. The ask is, on the click of the submit button of this form an email with property title, URL, image(Sitecore fields) should be triggered to the user. When the form page opens up from the property detail page, I am passing the property GUID in the query string for reading different fields of that property. How do I get these fields in the mail? These values will be different for each property. I am able to read the form fields in the mail using the tokens. How do I read the Sitecore fields?

  • Is there any criteria that which image field value will be send to which user? – Swati Gupta Jun 15 at 7:29
  • @swati The image of the property for which the user clicks on "Request a viewing" button. – Niti Chauhan Jun 15 at 7:41
  • You can create custom field which will read query string guid and convert into image type.Then you can access that custom value like other field – Swati Gupta Jun 15 at 9:06
  • Not able to whip up an answer right now, but using a Custom Submit Action that uses the EXM Client API to Send a Message, allows you to pass in tokens that can be replaced in the email using token dollar sign notation ($tokenname$) sitecorehacker.com/2018/12/21/managing-the-unsubscribe-part-5 – Pete Navarra Jun 16 at 3:42
  • Also, re-reading your question... is your question how to get custom data into emails? Or how to get a Sitecore Item up via a GUID in the query string? – Pete Navarra Jun 16 at 3:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.