Emailing results from SmartObject List method

  • 5 January 2011
  • 2 replies
  • 2 views

Badge +3

I have a smart object with a list method that returns two fields (id, number) from a database table. I would like to email all the results of the list method. I have created a workflow with a smart object event that calls the list method. When I try to map the results from the smart object method (ID, Number) I can only do it to two data fields (ID, Number). When I add email event and use the two data fields in the body of the message I only get the last row of the database table instead of all the rows.


I have tested the smart object using the smart object tester and the list method returns all the rows of the table.


Any ideas?


thanks,


Luis


 


 


2 replies

Badge +4

If you are trying point the list inside the Message Body then there is a better way.


Create a server event just before the mail event and read the list and store it in a process field.


Just drag this field inside the message body.


Regards


NathanPillai

Badge +3

Do you have some sample code on how to do this?


Thanks,


Luis

Reply