Form Submission from Checkout for Responsys — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Form Submission from Checkout for Responsys

We are currently trying to use a form within checkout to pass the email address and Opt-in/Out using:

MultiValueMap<String, String> form = new LinkedMultiValueMap<String, String>()

  1. form.add("EMAIL_ADDRESS_", emailAddress)
  2. form.add("EMAIL_ORIG_SOURCE", "WEB SIGNUP FORM")
  3. form.add("EMAIL_PERMISSION_STATUS_", isOptIn ? "Y" : "N")
  4. form.add("_ri_", "X0Gzc2X%3DYQpglLjHJlYQGgtsPsycBISClkdDvv44Iyze6wwwoMDnzbjGGVwjpnpgHlpgneHmgJoXX0Gzc2X%3DYQpglLjHJlYQGNg2HzbBXEOqHjPmczbzfoCYK76wwwoMDnzbjGG")

RestBuilder restBuilder = RestBuilderUtil.assembleDefaultRestBuilder()

try {

def response = restBuilder.post("https://shop.haband.com/pub/rf") {

accept("application/json")

contentType("multipart/form-data")

body(form)

}

if (response.statusCode.is2xxSuccessful()) {

return

}

log.error("Failed to opt in or out of email for ${emailAddress}")

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!