CRM 2011 JQuery OData REST Endpoints Create Record

In CRM 2011, we can create record easily using JQuery and OData. This will get triggered asynchronously using the ajax functionality.

Create Record function from the SDK:



To create new record, you just need to instantiate your object and call the function. The tricky part is when you want to assign Lookup field or OptionSetValue. You can get more info on this from the SDK itself. Here is an example:

Comments

  1. Did you know how does the same thing with the close incident request? I would like to know how to write the sentences to create incident resolution record.

    ReplyDelete
  2. Hello
    Nice example.
    I want to know what is successCallback parameter? From where would I get these function references?

    Regards,
    Bhavika Patel

    ReplyDelete
    Replies
    1. Hi Bhavika,

      successCallback is basically a normal javascript function you want to call after the request has been processed. You just need to create that function and pass that function name into that parameter list :)

      Regards,
      Andreas

      Delete

Post a Comment

Popular posts from this blog

SharePoint 2013 anonymous access add attachments to list item

CRM Plugin - Parent and Child Pipeline

Sitecore custom publish agent from specific node and at a specific time