Skip to main content
Question

Convert Text String to Evernote Checkbox List - ENML error Content Malformed

  • March 25, 2024
  • 1 reply
  • 36 views

Hi folks,

 

Using the Code by Zapier Javasrcipt to convert a text string to an Evernote checkbox list. Here is the code Im using:

// Assuming 'taskString' is your input variable containing tasks separated by commas

const tasks = inputData.taskString.split(',');

// Building the ENML content for Evernote

let enmlContent = "<en-note>";

tasks.forEach(task => {

// Clean up task to ensure no leading/trailing whitespace

task = task.trim();

// Append each task wrapped with <div> and <en-todo>

enmlContent += `<div><en-todo></en-todo>${task}</div>`;

});

/ Closing the <en-note> tag

enmlContent += "</en-note>";

// Outputting the formatted ENML content

output = {enmlContent: enmlContent};

 

However I keep getting an erorr stating ‘Content of submitted note was malformed.’

 

I’ve reviewed the evernote ENML guidelines and dont see any issue.

 

Any help much appreciated,

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • March 25, 2024

Hi @Sam E Cee 

To help us have full context, post screenshots with how your Zap steps are outlined and configured in EDIT mode along with the encountered error.