Skip to main content
Best answer

Creating Action with nested data


Forum|alt.badge.img

I am working on developing an app with the regular builder and not CLI. I need to pass contact information from sources like forms or CRMs. 

 

I can add the Action of add contact and use the API resource of Subscribers. I am able to pass the email, but nothing else. 

 

I tries using the Line Item Group, like I did for Order Information (another Action), but there seems to be more nested data. I see Custom Fields, Field Name and Value. 

Is there a way to do this without using CLI?

 

Here is the example API documentation:

 

POST https://edapi.campaigner.com/v1/Subscribers HTTP/1.1
ApiKey: 67c27802-f234-4196-b44c-460245d4978e
Content-Type: application/json

{
  "EmailAddress": "jason@example.net",
  "CustomFields": [
    {
      "FieldName": "FirstName",
      "Value": "Bob"
    },
    {
      "FieldName": "Age",
      "Value": "32"
    },
    {
      "FieldName": "OtherDate",
      "Value": "6/13/2011"
    }
  ],
  "Publications": [
    1,
    3
  ]
}

Best answer by hank3rdBest answer by hank3rd

@Danvers I think that I finally got somewhere. I did not know that I could customize the API call. I was able to pass one field and I am going to add more. I will start a new thread if I need anything else. 

 

 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Danvers
Forum|alt.badge.img+12
  • Zapier Staff
  • 3731 replies
  • June 12, 2020

Hi @hank3rd! We’ll need a bit more context to help you out with this one, so I’ve escalated your question to the Support Team so that they can take a look at it. Soemone will be in touch via email as soon as possible. 


Forum|alt.badge.img
  • Author
  • Beginner
  • 16 replies
  • Answer
  • June 12, 2020

@Danvers I think that I finally got somewhere. I did not know that I could customize the API call. I was able to pass one field and I am going to add more. I will start a new thread if I need anything else. 

 

 


Danvers
Forum|alt.badge.img+12
  • Zapier Staff
  • 3731 replies
  • June 12, 2020

That’s great @hank3rd!

 

Thanks for letting us know 🙂