Developer forum

Forum » Ecommerce - Standard features » Comments not available in RMA emails

Comments not available in RMA emails

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

We ran into an issue where a comment submitted as part of an RMA request or change is not available in the email that is sent through the notifications. This applies to both the backend (for example on RMA state change) and frontend (when the user submits a new RMA). Here are the steps that demonstrate the issue:

  1. In the frontend using the Customer Center, create a new RMA, add a comment and then submit the RMA.
  2. The email that gets sent (on RMA Creation) contains all the RMA details, but not the user's comment.
  3. Change the state of the RMA in the backend, enter a comment and save the RMA. The email that that triggers contains the comment from the user of step 1 but not the one from step 2.
  4. Repeat step 3: change the state of the RMA in the backend again, enter a comment and save the RMA. The email that that triggers contains the comment from the user of step 1 and from step 2 but not the one from step 3.

I think I tracked it down to this code in ReturnMerchandiseAuthorizationEmailRenderer.vb

If template.LoopExists("Ecom:Rma.Comments") Then
    Dim commentLoop As Template = template.GetLoop("Ecom:Rma.Comments")
    For Each comment In rma.History

It seems to render the comments from the history, not from the current, active action. I guess the new comment hasn’t been added to the history at this point. Here's a video showing this also: https://www.screencast.com/t/1Q8DQlRj

Can you take a look at this please?

Thanks!

Imar


Replies

 
Oleg Rodionov
Reply

Hi Imar,

I was able to catch only first issue (step 2) but not second one - you have forgotten input a comment as per your video in fact. Please, see my proof taken with solution based on v892 - https://www.screencast.com/t/LkmTWYDMw and confirm only one bug.

So, I've created new TFS 32475 to fix point 2, thanks.

BR, Oleg QA

 
Oleg Rodionov
Reply

...some workaround  - you can use separate notification 'A comment has been added to the RMA' performed correctly in any case.

BR, Oleg QA

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Thanks, Oleg. I just saw this was fixed. We'll check it out and see how it works. Hopefully I can indeed confirm there was only one issue.

Cheers,

Imar

 

You must be logged in to post in the forum