Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

I am getting text field data in Draft.js Raw Content State.

Avatar

Level 3

Hi,

I am using a custom "Text with Formatting" field and sending this field's data in a email notification to user however I am getting the data in below format rather than the simple text. I guess its the Draft.js Raw Content State.

 

{"blocks":[{"key":"kami","text": "Observations & Recommendations","type":"unstyled","depth":0,"inlineStyleRanges":[],"entityRanges":[],"data":{}}],"entityMap":{}}

 

Does anyone have any idea how to get this field's data into simple text form?

 

Any help or suggestion would be appreciated. TIA!!

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi @Himanshu4 - You can parse the JSON string using the Parse JSON module and then extract the text in the next step using the following:

get(map(mapblockhere[];text);1)

View solution in original post

3 Replies

Avatar

Correct answer by
Level 9

Hi @Himanshu4 - You can parse the JSON string using the Parse JSON module and then extract the text in the next step using the following:

get(map(mapblockhere[];text);1)

Avatar

Level 3

Thank you@_Manish_Singh 

Avatar

Level 9

If there are multiple texts, you can use:

join(map(mapblockhere[];text);"")