Template start expression empty result

Hi ! 

I'm new with App Sheet, and I'm struggling to use the <<Start: >> expression in my Google docs template.

I have 2 tables, "Invoices" : 

Screenshot from 2023-11-26 20-35-40.png

and "Services" :

Screenshot from 2023-11-26 20-35-49.png

There is a one-to-many relationship between "Invoices" and "Services" : an Invoice contains different services, and a service is only linked to one invoice.

My goal : for every created invoice, generate a PDF that lists the invoice's information, and the related services.

To list the related services, I understand I have to use the <<Start: > expression.

If I understand correctly, I try to achieve "Reverse reference" as described in the doc : https://support.google.com/appsheet/answer/11541779

So here's what I tried in my google docs template file : 

 

 

<<Start: [Related Services]>>

<<[Service Name]>>

<<End>>

 

 

But this produces an empty text on my generated PDF.

 

Anyone knows what I'm doing wrong ?

 

Thanks for your help !

Solved Solved
0 7 404
1 ACCEPTED SOLUTION


@d1scover wrote:

for every created invoice, generate a PDF that lists the invoice's information, and the related services


If you are running the event on paren'ts add, the children are not created yet when the bot runs.

Example automations - AppSheet Help

View solution in original post

7 REPLIES 7

Hi d1scover,

Your expression is correct. I don't exactly know why it doesn't work... Try to put your columns within a table : 

<<Start:[Related Services]>>

 

<<[Service name]>>

 <<End>>

Hi baba_sawane !

I tried your suggestion but I'm still getting an empty result for this expression. 
I can access the columns of "Invoices" from my template, but I can't manage to access the related "Services" ...

I'll keep searching, thanks for your help !

Can you please make sure:

1) in your template, the whole <<Start:>> ...<<End>> has the exact same typo and layout

2) for the specific record you are running test, you really have services attached. One common mistake is to run a test on the first row...which has no related services 🙂

Hi @Aurelien ,

thanks for your help, my problem was solved following @SkrOYC 's answer.

Thanks for your time, and have a nice day !


@d1scover wrote:

for every created invoice, generate a PDF that lists the invoice's information, and the related services


If you are running the event on paren'ts add, the children are not created yet when the bot runs.

Example automations - AppSheet Help

Thank you @SkrOYC  !

I was investigating something like this, and this is exactly what the problem was.

After following the tutorial on your link, everyone works now fine!

 

Thanks for your precious help, and have a nice day

YO TAMBIEN TENGO ESE PROBLEMA ME PODRIAS AYUDAR NO ENTIENDO MUY BIEN LO DE CREAR DOS ACCIONES COMPUESTAS