Start & End expression in email template

Hello Experts,
I would like to send email on ADD for parent & child table. Below is my Parent table:


Below is child table:

I have an template to create an email attachment & need to show corresponding parent & child data on even ADD or when I will insert new data:

But I received error in the template:

The error text is: โ€œExpression โ€˜Endโ€™ is invalid due to: Expression refers to undefined fieldโ€

Could you please help me on this?
Thanks,
Arindam

0 7 203
7 REPLIES 7

Aurelien
Google Developer Expert
Google Developer Expert

Hi @arindam.samanta

move the End statement AFTER the table.
This is because your Start statement is BEFORE the table.

However,
In this specific case I suggest you move the Start INSIDE the table and leave the End where it is now.

Otherwise, you will have a serie of tables with header repeated each time.

Let us know if that works for you !

Hello Codergo,
Thanks for your reply. Its working. But I did not receive the child information. Getting only parent data in email attachment.
3X_4_4_44e52dbbbce32bcf8c956b0ee3af5e515fa4a3d4.png

Any idea? Could you please suggest?
Thanks,
Arindam

Hi @arindam.samanta

Are there items related to the parent ID โ€œed52093fโ€ ?
At looking at the output, it seems there is no children attached ?

Hello Codergo,

Yes, I saw that related child data is available:
3X_2_8_285afca849e56ca589fbc2d580dd7f75da72f45e.png


But My attachment does not have any child data.
3X_4_5_451ab7547140e534930cccc3763c022b1adb9520.png

Any Idea!!
Thanks,
Arindam

can you show your new template please ?

Hello Codergo,
As requested, please check below:

Thanks,
Arindam

not sure that will change anything, butโ€ฆcan you try to set that up without any break line in the first and last cell ?
Also, make sure typo is exactly matching the one in your data structure.
Parent Id ==> Parent ID for example.

This behavior looks strange to me.

EDIT: added comment on typo

Top Labels in this Space