web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

RMA Sub-Status is Reset every time I open an RMA

(0) ShareShare
ReportReport
Posted on by 927

Issue:

Whenever I open an RMA form, the Sub-Staus field will change to the default Sub-Status of the RMA Status. This is broken since if I select a different sub-status and close the form, this value will be lost when I reopen the Form.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Loic Orue Profile Picture
    927 on at

    Thought I'd share the solution to this issue since anyone using field service's latest update on CRM Online should be facing the same issue.

    Solution:

    This is caused by the OnLoad out of the box plugin from Microsoft which obviously has a mistake in it.

    Step 1: Open the Web Resource msdyn_/RMA/RMA.Library.js (check first that the same js is being used "OnLoad" by checking your RMA Form properties):

    7875.save2.jpg

    Step 2: Make a backup of the original code just in case something goes wrong.

    Step 3: Beautify the code to be able to read it (I use http://jsbeautifier.org/ but you can use a different one).

    Step 4: Look for the line with the code "RMAs.Lib.SetSubStatus();" for me it's line 37

    7875.save2.jpg

    Step 5: Comment the line.

    6327.save3.jpg

    Step 6 (optional): Compress the JS again, be careful with compression tools you use as some will change your code to optimize it even further and I don't know how the CRM will react to it. I did not compress it.

    Step 7: Update the Web Resource and Publish.

    The SetSubStaus function is called every time the form is loaded, this is incorrect since it will overwrite any sub status value with the default one linked to the Status. The Onchange trigger just below is correct since it will set the proper SubStatus if the Status field changed.

    The issue should be fixed :).

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans