Hi
I created new entity called Auto number. I want to update opportunity ref number field of auto number entity inside opportunity form by using java script on save event. I can bring this number in opportunity form by using below script (it is part of the script)
retrieveResult.setRequestHeader("Accept", "application/json");
retrieveResult.setRequestHeader("Content-Type", "application/json; charset=utf-8");
retrieveResult.send();
if (retrieveResult.readyState == 4 )
{
if (retrieveResult.status == 200)
{
var retrieved = JSON.parse(retrieveResult.responseText).d;
But I want to know how I can update the opportunity ref number of Auto number entity inside the opportunity form in save event. Kindly provide the simple sample script to update field by using odata and json scripts.
Or how I can update Auto number entity inside the opportunity form in save event.
*This post is locked for comments