Forum Discussion
It’s the newline character in the string that is causing the issue. The dot notation for character matching in regex does not match newlines. After a bit of thought, we can also simplify the result by using the regex group capture syntax. Try this:
$notes.replaceAll('\n','').replace(/.*#IF:(.{9}).*/g, '$1')
@ariana you can try below option-
- Use mapper and copy entire body {“email”:“”,…} and use target field as $ in mapper.
- You don’t need to touch anything related to file upload option, rather add header field like below.
- Also make sure you choose snap execution as "validate and execution" at below.
Hi there! Thanks for your help. Here is what I am looking at now, still no output:
Mapper -
Mapper validation output -
POST Snap:
Pipeline:
Edit: I will add that I did try simply copying the body into the mapper with “$” in the Post snap but with the same (lack of) results.
Related Content
- 2 years ago
- 7 years ago
- 3 years ago