Hi All,
I have used the follwing function to Open model form by sekecting record from subgrid. The issue is I need the details of the field of this popup form to execute the next line but it is not stopping till Save and the next line of code is getting executed once we just open the form.
Below is the fuction to open modal form
Hi Ray,
Thanks for your reply.
Sorry for not giving proper information
Actually My Next call is below line which retrieve the realted record from saved Modal form.
But it is getting called just after the pop is opened and not able to fetch the record
Xrm.WebApi.online.retrieveRecord("sd_enityprod", productId, "?$select=cvt_eSignature").then(
// function success(result) {
// console.log(result);
// cvt_eSignVal = result["cvt_eSignature"]; // Text
// },
// function(error) {
// console.log(error.message);
You can call your next function in the successCallback and errorCallback, in your case is function success(){} and function error(){}.
Here is an example:
Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
function success(result) {
alert("Here is a success callback");
},
function error() {
alert("Here is an error callback");
}
);
How Can I execute the next function call after this form is saved..Can anyone please modify it???
{Last Line -read here)
Daivat Vartak (v-9d...
225
Super User 2025 Season 1
Eugen Podkorytov
106
Muhammad Shahzad Sh...
106
Most Valuable Professional