I want to clean up the phone numbers from my api

Hello community, I would like to clean up the phone numbers I get from my api. I would like to do the cleanup in a code node to test my JavaScript knowledge. But I can’t get any further. I have now written the following script and always get only as a result: null. I’ve already tried what happens when I run the first line through: let phoneNumber = “09585/86756757” || ‘’; Replace. And there I got the phone number cleaned up as a result. But how do I get the phone number of my API in there?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hello @MarvinSippel

I don’t see any issues with the provided phone number

Yes, that’s how it works, but if I want to get the phone number from the api, it doesn’t work.

What API are you talking about?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.