Dear Fellow Dynamics Technician
I wonder if anyone has ever experienced trouble with non functioning javascript onload function during convert-to-case on activities? It has been tested that the js function is working when creating the case manually by identifying the data being successfully populated on the form, but not on convert-to-case, the field is empty as if the js function is not function when loading the form. Is there any other workaround on this? We have tried to build workflow to fill up the data statically, but we need it to be dynamic based on the case creator (user), so wonder if Dynamics does not really support js onload specifically for convert to case or we are missing out on some configuration just for that functionality. Many thanks in advance and have a nice one.
Regards,
Jonas
Hi Mr. Garlapati
I have somehow inspected the javascript functions using Internet Explorer developer tools, unless if I miss anything out, there was no issue detected. I kind of assume not that certain javascript onload functions can't work on convert to case function. Is that true? I am kind of more convinced of this assumption because the functions are working as expected when creating the case manually.
Thanks for your concern so far and have a nice one.
Regards,
Jonas
Hi Jonas,
There are multiple ways to solve this problem.
First of all debug the Javascript code when converting to case and find if the javascript is being triggered and check in case of any exceptions (Please let me know if you need any further info on how to do this?)
You can even write an action to do this activitiy and call the action from javascript whereever is required. Here is the link on how to call action from javascript (http://ranjeet-dynamicscrm.blogspot.com/2014/05/ms-crm-2013-call-action-from-javascript.html)
Please feel free if you have any further questions or doubts.
Note: In case my answer helped you. Kindly mark it as verified.
Warm Regards,
Pavan Kumar Garlapati
Follow my Blog: https://pavankumargarlapati.wordpress.com
Hi Leo
Thanks for your prompt response upon my inquiry. The suspicious behavior of the system here is that the js functions are functioning properly when creating case manually, so we kind of suspect that just for convert to case method js onload can't be used which if it is true, we are trying to find some other workaround. Fields that are used for both manual creation and conversion to case are exactly the same. Additionally, more info on the version, Dynamics CRM v8.2 on-premise is used. Hoping to get more insight on this matter. Cheers
Regards,
Jonas
Hi partner,
Could you share your code or requirement with more details?
According to your description, I think that when you converting to cases, the js code could not catch the field correctly so that it alerts empty error. You could also use Developer tools to debug the code step by step.
Hope it helps.
Best Regards,
Leo
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,802 Super User 2024 Season 2
Martin Dráb 229,133 Most Valuable Professional
nmaenpaa 101,154