Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Need Help on Portlas

$
0
0

Hi All.

i am facing one issue(it's not issue i am not achieving one simple scenario).

i have two systems like   (1) MS CRM Application    (2) MS CRM Portals

here my requirement is i am created 2 custom pages

1 orders List

2 orders Details

from the CRM Application i am getting data into the Portals.  using  Odata and Entity lists.

in portals whenever order list particular record is open it's navigate to the Order Details page and it's opening the record if i make any changes fields data then after i am clicking submit button, Data is not saving both applications(crm and portals)

Below is the Submit Function Code(to the CRM System)

function Submit() {
debugger;
if ($('#name').val() != null) {
var entity = {};
entity.new_name = $('#name').val();
entity.new_orderid = "1234321";

$.ajax({
type: "PATCH",
contentType: "application/json; charset=utf-8",
datatype: "json",
url: "~/_odata/orderslist(guid'" + guid+"')",
data: JSON.stringify(entity),
beforeSend: function (XMLHttpRequest) {
XMLHttpRequest.setRequestHeader("Accept", "application/json");
XMLHttpRequest.setRequestHeader("X-HTTP-Method", "MERGE");
},
async: false,
success: function (data, textStatus, xhr) {
alert("success");
},
error: function (xhr, textStatus, errorThrown) {
alert(Xrm.Utility.alertDialog(textStatus + " " + errorThrown));
alert("error");

}
});
}
}


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images