Skip to main content

Notifications

Customer Service forum

Convert To Case - JS Function Onload: Empty field

Posted on by Microsoft Employee

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Convert To Case - JS Function Onload: Empty field

    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

  • RE: Convert To Case - JS Function Onload: Empty field

    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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Convert To Case - JS Function Onload: Empty field

    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

  • LeoAlt Profile Picture
    LeoAlt 16,329 on at
    RE: Convert To Case - JS Function Onload: Empty field

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,802 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,133 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,154

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans