question

Adrian Wild avatar image
Adrian Wild asked

APL: Is it possible to import a package or document.json file from the same repository?

I read something about using "doc://alexa/apl/documents/aplDoc" for the url path, but it is not working for me. Is this possible, or do I have to host my package online?

apl
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Andy Whitworth avatar image
Andy Whitworth answered

Hi Adrian,

You are correct in that it is possible to reference APL documents with a local "doc://aplexa/apl/documents/xxx" path. In order to do that, you need to have created an APL document with the referenced name in the Multimodel Visual editor in the Alexa dev console. You also need to set the document.type to be "Link" where you reference the APL doc.

https://developer.amazon.com/en-US/docs/alexa/alexa-presentation-language/apl-interface.html#renderdocument-properties

Hope that helps.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.