Query the application context
If you completed the quick start, you've already made this query.
Query the application context to retrieve details about the current Marketplace app, such as its name, status, and deployment URL, and about the Sitecore app, such as environment information and Context IDs.
To query the application context:
-
In the SDK initialization code where you run the
useMarketplaceClienthook, in the Effect Hook, create a new query, then save your changes: -
In your web browser, in the Cloud Portal, find and open your Marketplace app in one of its extension points.
-
Open your web browser's console, then refresh the page.
-
In the console, find the log for
Success retrieving application.contextand inspect the object. The object contains all the details about the current Marketplace app.