I had added multiple fields in request body but if the field value is blank its not coming in exported data is there any way to get the fields also in exported data.
Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.
When exporting contact data to a file either via the API or the UI, the fields specified will only appear in the file if at least one of the contacts returned has a value set for this field.
As an example, if you specify the field “company_name” in your request body, but none of the contacts returned have a value set for “company_name”, that field column will be absent from the response.
If you need all of the specified fields from your request body to appear in the response body file regardless of whether the returned contacts contain a value for that field, I’d suggest adding a test contact into the account/list/segment that you are pulling data from, and adding a value to all of the fields that you want returned within the file.
Please have a look and let us know if you have any other questions!
For further assistance with this, please feel free to contact us directly and securely via email at email@example.com with your full request body and the UN of the account you are working with.
View API documentation, code samples, get your API key.Visit Page
Join our list to be notified of new features and updates to our V3 API.Sign Up