Why is my Ajax script and Client script not working. unable to call the records from Leave bucket

MG_Azam
Tera Contributor

Hi Community,

Need your help with the Ajax code (Script include) and client script.

This code is created to call the record from the leave bucket and populate the respective fields in the new leave request form. variables are correct, but some how the code is not working (unable to pull the record and populate)

 

Screenshot 2023-10-29 153923.pngScreenshot 2023-10-29 153946.png

1 ACCEPTED SOLUTION

@MG_Azam I asked you to make changes in the Client script only. Your script include script should remain same.

In a nutshell, your ImsAjax should look like the following 

Screenshot 2023-10-29 153946.png

 

And your Populate leave data should have the following code.

Screenshot 2023-10-29 234800.png

Hope this clears out all the confusion and resolves your issue.

View solution in original post

10 REPLIES 10

Thanks it's working now. Only got this behavior in my dev instance.