[Html2PdfConverter] Multitenancy

[Html2PdfConverter] Multitenancy

  
Forge Component
(42)
Published on 23 Jun by Guilherme Pereira
42 votes
Published on 23 Jun by Guilherme Pereira

How can you use this in multitenant app? Since the screen needs to be anonymous, the data generated in the preparation are empty.

Greetings,


Niels

HI Niels,

It should pretty much be done as you send emails in the same context.

Have you tried to pass the tenantid to the page and use the tenant switch on the preparation of your screen?

Cheers,

Guilherme

I indeed passed the tenant as input parameter. It's being passed correctly. (tenant id 230 for example)
However on the preparation of the screen I 'm passing it to, it's resetting the value ro 0 somehow...


Any ideas why it resets its value to 0 in the preparation? 


greetings

Unless there's some kind of bug the parameters should not be reset. Usually this can happen by simply using the wrong parameter name.


Have you tried calling the page directly from the browser with that Id? Does it get reset?

Nope, the generated link was correct when calling the page directly. It's a strange issue, i solved the problem by storing it in a variable and using the variable instead of the input parameter