Development, Howto

How to Add records to Marketing List using WebApi

Following code can be used to add records to Marketing List using JavaScript and WebApi:

 

4 Comments

  1. Hi Andrew,

    Samething we are doing and code also same but we are facing an issue while 3000 members adding . getting error like ‘ Failed to insert audit record” . Please answer if you have any idea about this. It will help us.

    1. Kirna,
      To be honest I have no idea about that error, never seen that error before.
      Thanks,
      Andrew

  2. Hi Andrew, and others,

    If you are trying to add marketing list members through the webAPI and you’re faced with the error message “Specified cast is not valid.”, then make sure that you’re adding contacts to a list that is targeted at contacts, and not inadvertedly mix contacts, accounts and leads to lists that aren’t targeted at that entity type.

    Cheers!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.