Loading
Salesforce から送信されるメールは、承認済ドメインからのみとなります続きを読む

How to Filter Emojis from a String in MuleSoft Dataweave 2.0

公開日: Dec 9, 2025
タスク

GOAL

The goal of this KB is to go through the steps to remove emojis from a String using Dataweave. This could be useful in the scenario that a request is coming into your API with an emoji in the payload, and your source system is unable to parse it, which could cause some issues.
ステップ

In order to filter out emojis you can use the MuleSoft Dataweave replace function. See the sample DW script below:

%dw 2.0
output application/json
var testVal = "test👻"
---
{
    "testKey": testVal replace /[^a-z0-9A-Z]/ with ""
}


And the output would look something like this:

{
  "testKey": "test"
}



 

ナレッジ記事番号

001115812

 
読み込み中
Salesforce Help | Article