Skip to main content
Solved

incorrect JSONPath

  • February 17, 2025
  • 3 replies
  • 93 views

metadana

I am using external requests. and when I test the request everything is fine. I want to do the response mapping like the document explained here:
https://help.manychat.com/hc/en-us/articles/14281285374364-Dev-Tools-External-request
but  I get nothing in Select Custom Field when I type in $.all_users[0].name in JSONPath.
btw my generated response is:
 

{"all_users":[{"id":1,"name":"Alice"},{"id":2,"name":"Bob"}],"current_time":"2025-02-17 14:30:00"}

 

Would my JSONPath be wrong? or there must be another issue?

Best answer by Gustavo Boregio

Got it, go to Settings, Fields and create a custom field first! ;)

Then you’ll be able to select it.

3 replies

Gustavo Boregio
Forum|alt.badge.img+6
  • Manychat Community Moderator
  • February 17, 2025

@metadana your JSON mapping is correct.

Are you testing in a real scenario or just a Preview? Previews won’t assign custom fields and do the mapping, so you need to test it in a real run.

Also, make sure you’re mapping it to a user field in your automation.


metadana
  • Author
  • Up-and-Comer
  • February 17, 2025

@Gustavo Boregio I can’t even save it in order to test, because it won’t suggest the custom field.

 


Gustavo Boregio
Forum|alt.badge.img+6
  • Manychat Community Moderator
  • Answer
  • February 17, 2025

Got it, go to Settings, Fields and create a custom field first! ;)

Then you’ll be able to select it.