Best answer

Creating Action with nested data

  • 9 June 2020
  • 3 replies
  • 478 views

Userlevel 2
Badge

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
]
}
icon

Best answer by hank3rd 12 June 2020, 17:53

View original

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

Userlevel 7
Badge +12

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. 

Userlevel 2
Badge

@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. 

 

 

Userlevel 7
Badge +12

That’s great @hank3rd!

 

Thanks for letting us know 🙂