Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.
CrmRestKit - Associate

Svar 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