How to loop through api response and assign to n contacts.

Hi, good morning!

I’m currently working on an API integration via Custom Code of Operations Hub, the code is for sales info enrichment and one of the parts of the JSON response is a list of dicts with a dynamic size, like:

[{client A: ‘foo’}, {client B: ‘bar’}, … n].

My original idea is to, based on that response, create N new contacts using the data from the response. Is that possible? I haven’t seen any similar public ideas.

Thanks!

Renan

Hey, @RCLima :waving_hand: Thanks for reaching out. Can you provide any additional information? Your question may be too broad to get a reply from the community.

Adding more details can help:

  • listing what you’ve tried — I already did X and Y and here is a code sample
  • linking to the documentation you are using
  • linking to any posts you’ve found in your initial research

Not all are required, but any/all of those details can be helpful to the community.

Thank you! — Jaycee