Can I use an action output variable as a document reference?

Hey friends, thank you in advance.

My app is scanning a QR code on page 1 which results in an action output variable. When I pass that action output variable to page 2 as a page parameter string, it works fine. But if I set that page parameter as a document reference I get a "current variable is not valid" error.

The way I see it, I can either:

  • convert the action output variable from a string into a document reference on page 1 (if there are any guides on how to do this, I'd greatly appreciate it!) OR

  • I can pass the variable as string to page 2 and then convert to a document reference (again, any guides on how to do this i'd greatly appreciate).

Or maybe on page 2 I can set up the query to use the page parameter string as the document reference? Is that possible?

Cheers!

3 replies