add Contact to Marketlist

public

 

 

void AddContacttoMarketlist(string _contactid, string _marketlistid)

{

 

ServerConnection serverConnect = newServerConnection();

 

ServerConnection.Configuration config = serverConnect.GetServerConfiguration();

 

OrganizationServiceProxy _serviceProxy;

 

var creds = newClientCredentials();

 

using (_serviceProxy = newOrganizationServiceProxy(config.OrganizationUri,

config.HomeRealmUri,

config.Credentials,

config.DeviceCredentials))

{

 

// This statement is required to enable early-bound type support.


_serviceProxy.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(

 

newProxyTypesBehavior());

 

IOrganizationService service = (IOrganizationService)_serviceProxy;

_serviceProxy.EnableProxyTypes();

 

AddMemberListRequest addMemberListRequest = newAddMemberListRequest();

addMemberListRequest.EntityId =

 

newGuid(_contactid);

addMemberListRequest.ListId =

 

newGuid(_marketlistid);

 

AddMemberListResponse addMemberListResponse = _serviceProxy.Execute(addMemberListRequest) asAddMemberListResponse;

}

}

 

 

This entry was posted in MS Dynamic CRM 2011. Bookmark the permalink.

11 Responses to add Contact to Marketlist

  1. PPI amount says:

    I simply wanted to let you know how much I appreciate almost everything you’ve contributed to help improve the lives of people in this subject matter. Through your articles, I’ve really gone from just an amateur to a specialist in the area. It is truly a gratitude to your good work. Thanks

  2. Thanks a lot for your time to have decided to put these things together on this web site. Robin and i also very much prized your input through the articles about certain things. I know that you have a variety of demands in your schedule therefore the fact that you took all the time like you did to steer people like us by this article is also highly liked.

  3. online games says:

    I couldn’t currently have asked for a much better blog. You happen to be ever present to present excellent information, going straight away to the point for convenient understanding of your target audience. You’re surely a terrific professional in this area. Many thanks for being there for individuals like me.

  4. Most I can express is, I’m not sure what to really say! Except obviously, for the excellent tips that are shared within this blog. I can think of a trillion fun methods to read the posts on this site. There’s no doubt that I will ultimately make a move utilizing your tips on those things I could never have been able to address alone. You are so innovative to permit me to be one of those to learn from your beneficial information. Please recognize how considerably I am thankful.

  5. It was a real contentment getting to your site last night. I got here right now hoping to get something new. And I was not dissatisfied. Your ideas in new tactics on this subject were useful and a wonderful help to us. Thank you for making time to write out these things as well as for sharing your thinking.

  6. The guidelines you have given here are incredibly precious. It turned out such an exciting surprise to get that waiting for me when I woke up this very day. They are often to the point and straightforward to understand. Thanks a lot for the thoughtful ideas you have shared right here.

  7. Thanks a ton for your time to have had these things together on this weblog. Michael and I very much prized your suggestions through the articles with certain things. I recognize that you have numerous demands with your program and so the fact that you actually took all the time like you did to help people really like us by this article is definitely highly loved.

  8. mojibakeru says:

    The guidelines you provided here are incredibly priceless. It absolutely was such a pleasurable surprise to have that awaiting me as i woke up today. They are generally to the point and easy to understand. Thank you very much for the clever ideas you have shared in this article.

  9. tiling says:

    The suggestions you have given here are quite priceless. It absolutely was such a pleasurable surprise to see that waiting for me once i woke up this very day. They are always to the point plus easy to interpret. Warm regards for the useful ideas you’ve shared here.

  10. The tips you have given here are quite useful. It turned out such an entertaining surprise to see that awaiting me after i woke up now. They are often to the point and straightforward to understand. Warm regards for the valuable ideas you’ve got shared in this article.

  11. The points you shared here are quite useful. It absolutely was such a pleasurable surprise to see that looking forward to me after i woke up today. They are usually to the point plus easy to learn. Thank you very much for the innovative ideas you’ve shared above.

Leave a Reply to pregnancy signs Cancel reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>