Not Getting Communication History

Hi,
  I want to replicate the communication history same as support ticket.Support Ticket uses following method for retrieving communication list
 
  var comm_list = wn.model.get("Communication", {"parent": doc.name, "parenttype":"Support Ticket"})

  Trying to do same thing by using

  var comm_list = wn.model.get("Communication", {"parent":doc.name,"parenttype":"Email Inbox"})
 
  but it returns empty result set.
 
  Even though query for above condition returning required results.

  select * from `tabCommunication` where parenttype="Email Inbox" and parent="EI/0000000000639";

  Please suggest me a solution.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1190c8e9-2404-4ea1-b7bd-e928ee90c19b%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
Communication records are loaded for Support Ticket because it is also a hidden child table.



On 16-Jun-2014, at 11:33 am, Pranali Khatode <pr...@gmail.com> wrote:

Hi,
  I want to replicate the communication history same as support ticket.Support Ticket uses following method for retrieving communication list
 
  var comm_list = wn.model.get("Communication", {"parent": doc.name, "parenttype":"Support Ticket"})

  Trying to do same thing by using

  var comm_list = wn.model.get("Communication", {"parent":doc.name,"parenttype":"Email Inbox"})
 
  but it returns empty result set.
 
  Even though query for above condition returning required results.

  select * from `tabCommunication` where parenttype="Email Inbox" and parent="EI/0000000000639";

  Please suggest me a solution.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1190c8e9-2404-4ea1-b7bd-e928ee90c19b%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CDDFA8F8-9689-483F-B4A6-3FE6D0A547C1%40gmail.com.

    For more options, visit https://groups.google.com/d/optout.