---
category: [Platform and Product Extensions/Workday Extend, Platform and Product Extensions, Administration & Integrations, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Integration]
keyword: Extend
nav: wcp_docs
parent_url: /wcp_docs/
title: Extend App Preview
layout: subsection
---

App Preview enables you to view and interact with PMDs in App Builder without having to deploy to a tenant, helping you to iterate on app development much more quickly.

You can access App Preview in several ways:

-   In App Builder, select any PMD and click the ![](GUID-02fc9a29-b7c9-43ce-b30e-27d87445b692-enHYPHENus.png) icon in the top-right corner.
-   In the Workday Command Line Interface (WDCLI) use the app:preview command. For syntax, see: [Reference: Workday Developer CLI (WDCLI) for Extend Apps Commands](/wcp_docs/GUID-16d9d3f3-ba63-4022-8a84-ad78bd5189ca-enHYPHENus.html#).


The App Preview panel opens and displays a preview of your PMD.

App Preview only supports the UTC timezone, en-US language, and en_US locale.

## <a id="section_1"></a>App Preview Pop-Out

To launch a pop-out window or tab from within App Preview, click the ![](GUID-93ac27c7-8064-43fb-824d-c7073376c473-enHYPHENus.png) icon in the header. The pop-out includes debugging tools and additional variable and endpoint value data (Page State) for all Page Types. The app preview that opens in a new tab is not tied to the original side panel. You'll see these behaviors:

-   If you enter any values in the app preview, then open the preview in a new tab, those values won't display in the new open tab.
-   If you navigate to other pages within the original app preview, then open the preview in a new tab, the new tab opens with the currently selected page (not the current previewed page).


The pop-out includes these tabs:

-   <b>Scripts Console</b>: Displays any console logs from any PMD script on the page. You can write and execute any PMD scripts against your current preview page for Edit Page Types.
-   <b>Page State</b>: You can explore the different values and data for these items on your page:

    -   Variables (Available for all Page Types)
    -   Endpoints (Available for all Page Types)
    -   Tags (Only available on Edit Page Types). The only listed tags are those that have an ID filled out.



## <a id="section_mnj_bg5_gwb"></a>Displaying and Submitting Data

When you preview a PMD in App Preview, pages with inbound or outbound endpoints can't display unless you do one of the following:

-   Connect to a tenant.
-   Configure mock data responses for each endpoint.


<b>Connect To Tenant</b>

You can connect to a Development or Implementation tenant to read and write data from your tenant in App Preview.

Connecting to a tenant enables your app to:

-   Behave the same way in App Preview as when it's deployed to a tenant.
-   Read and write data from Workday and external systems.
-   Use real data without having to set up mock data for all endpoints.


<b>Note:</b>

-   When App Preview is connected to a tenant, the app invokes all inbound and outbound API calls. This might update data in your tenant or other systems.
-   Connecting to a tenant doesn't deploy the app to the tenant. You can deploy the app to a tenant that's different from the tenant you connect to in App Preview.


Refer to [Connect To Tenant](/wcp_docs/muh1673650962217.html) for more information.

<b>Mock Data</b>

If you don't want to connect to a tenant, you can configure mock data responses in the <b>Testing</b> section of App Builder and map them to each endpoint in the PMD.

Mock data enables you to:

-   Quickly test logic and verify dynamic scenarios using realistic sample JSON responses without having to change the source code.
-   Protect against changing data in your tenant or in external systems.


Mock data is required for endpoints that have an `authType` of OAuth2 because tenant connection doesn't support that `authType`.

Refer to [Mock Data](/wcp_docs/fyx1669849518693.html) for more information.

## <a id="section_vsx_zs1_hwb"></a>Behavior Differences In App Preview

These tables list app components that behave differently in App Preview.

<b>PMD Tags</b>

<table><thead></thead><tbody><tr><td><b>Tag</b></td><td><b>App Preview: No Tenant Connection</b></td><td><b>App Preview: Connected To Tenant</b></td></tr><tr><td><code>externalLink</code></td><td><p>The link displays but doesn't work if the <code>url</code> attribute is a relative path.</p> <p>Example: <code>"url": "<% '/'+tenant+'/d/home.htmld' %></code></p></td><td><p>The link displays but doesn't work if the <code>url</code> attribute is a relative path.</p> <p>Example: <code>"url": "<% '/'+tenant+'/d/home.htmld' %></code></p></td></tr><tr><td><code>image</code></td><td>The <code>image</code> tag only displays with the <code>imageUri</code> attribute, but not the <code>endPoint</code> attribute. <code>endPoint</code> uses mock data, which only supports JSON, whereas the <code>image</code> tag expects raw data to populate the image.</td><td>Normal behavior.</td></tr><tr><td><code>oauthButton</code></td><td>The widget renders, but clicking the button results in an error.</td><td>The widget renders, but clicking the link results in an error.</td></tr><tr><td><code>instance</code> <p><code>instanceList</code></p></td><td>The widget renders, but clicking the related actions menu for an object instance results in an error.</td><td>The widget renders, but clicking the related actions menu for an object instance results in an error.</td></tr><tr><td><code>oauthButton</code></td><td>The widget renders, but clicking the button results in an error.</td><td>The widget renders, but clicking the link results in an error.</td></tr><tr><td><code>multiSelectCalendar</code></td><td>The user timezone is always UTC.</td><td>The user timezone is always UTC.</td></tr><tr><td><code>video</code></td><td>Not supported. The page renders without the video.</td><td>Normal behavior.</td></tr></tbody></table><br/>

<b>Predefined App Variables</b>

<table><thead></thead><tbody><tr><td><b>Variable</b></td><td><b>App Preview: No Tenant Connection</b></td><td><b>App Preview: Connected To Tenant</b></td></tr><tr><td><code>attrstore</code></td><td>Returns an error if the app isn't deployed or not connected to the tenant.</td><td>Displays the app attribute values (if configured) or blank (if not configured). See <a href="/wcp_docs/tzm1634874879461.html">Assign Extend App Attribute Values</a>.</td></tr><tr><td><code>tenant</code></td><td>Always returns <code>quickViewTenant</code>.</td><td>Returns the name of the connected tenant.</td></tr><tr><td><code>site.tenantId</code></td><td>Always returns <code>quickViewTenant</code>.</td><td>Returns the name of the connected tenant.</td></tr><tr><td><code>userTimeZone</code></td><td>Always returns <code>UTC</code>.</td><td>Always returns <code>UTC</code>.</td></tr><tr><td><code>languageCode</code></td><td>Always returns <code>en-US</code>.</td><td>Always returns <code>en-US</code>.</td></tr><tr><td><code>environment</code></td><td>Always returns <code>WCPDEV</code>.</td><td>Returns the connected tenant's runtime environment. <p>Possible values:</p><ul><li>IMPL
</li><li>WCPDEV
</li></ul></td></tr></tbody></table><br/>

<b>Miscellaneous</b>

<table><thead></thead><tbody><tr><td><b>Component</b></td><td><b>App Preview: No Tenant Connection</b></td><td><b>App Preview: Connected To Tenant</b></td></tr><tr><td>Endpoint <code>authType</code></td><td>Ignores <code>authType</code>.</td><td>Supports these values: <ul><li>AWSV4
</li><li>NoAuth
</li><li>OAuth Client Cred
</li><li>SSO
</li><li>WCPISU
</li></ul></td></tr><tr><td><code>securityDomains</code> PMD property</td><td>Ignores security domains.</td><td>Honors security domains.</td></tr><tr><td>Translations</td><td>Only displays English (en-US) labels for all logged-in users.</td><td>Only displays English (en-US) labels for all logged-in users.</td></tr><tr><td><code>tenantedLabelOverridesEndpoint</code> SMD property</td><td>Ignores tenant label overrides.</td><td>Honors label overrides.</td></tr></tbody></table><br/>

### Related Information

[Mock Data](/wcp_docs/fyx1669849518693.html)

[Connect To Tenant](/wcp_docs/muh1673650962217.html)

[Reference: Logs](/wcp_docs/hlt1558652308211.html)

