[Html2PdfConverter] Multitenancy

Forge Component
Published on 2018-10-30 by Guilherme Pereira
55 votes
Published on 2018-10-30 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.



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?



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? 


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