CrmRestKit - Associate
-
maandag 7 mei 2012 15:14
Hello,
I try to add List Marketing Members with CrmRestKit.Associate but I have
errors:Sample 1 :
CrmRestKit.Associate(CrmRestKit.EntityReferenceFactory(Xrm.Page.data.entity.getId()),
'List', CrmRestKit.EntityReferenceFactory(sCurrentId), 'Contact',
'listcontact_association', false)
.fail(function (xhr, status,
ethrow) { alert('Error: ' + status + ': ' + xhr.statusText + '.'); } );Result : Bad Request
Sample 2 : CrmRestKit.Associate(sCurrentId, 'Contact',
Xrm.Page.data.entity.getId(), 'List', 'listcontact_association',
false)
.fail(function (xhr, status, ethrow) { alert('Error: ' +
status + ': ' + xhr.statusText + '.'); } );Result : Internat Server Error
If someone have an idea ?
Thank you in advance.
Ernest.
Ernest Geyskens
Alle reacties
-
donderdag 10 mei 2012 3:48
Hi Ernest,
For debugging REST web service, can you download a program called Fiddler (www.fiddler2.com) and post a more detailed error here (eg: HTTP error code and the actual error response)?
Hope this helps.
Dimaz Pramudya - CRM Developer - CSG (Melbourne) www.xrmbits.com http://twitter.com/xrmbits
- Als antwoord voorgesteld door Dimaz Pramudya (www.xrmbits.com) donderdag 10 mei 2012 3:48
-
woensdag 16 mei 2012 8:33
Now it’s ok with AddMemberListRequest.
Hereafter the link for a sample:
http://community.dynamics.com/product/crm/crmtechnical/b/mileyja/archive/2011/11/14/add-an-entity-member-to-a-marketing-list-in-microsoft-dynamics-crm-2011-using-net-or-jscript.aspxThank Daniel Rene Thul for the link.
Ernest.
Ernest Geyskens
- Als antwoord gemarkeerd door Ernest Geyskens woensdag 16 mei 2012 8:33