0

i'm having troubles creating a FlexiPage from the API.

Here is my code:

<?xml version="1.0" encoding="UTF-8"?>

<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">

<description>Fastcall Dashboard Test</description>

<pageTemplate>HomePageSingleColumnTemplate</pageTemplate>

<flexiPageRegions>

    <name>main</name>

    <type>Region</type>

    <componentInstances>

        <componentName>flexipage:dialByList</componentName>

        <componentInstanceProperties>

            <name>fastcallDialByListComponent</name>
            <value>ApexPage</value>

        </componentInstanceProperties>


    </componentInstances>

</flexiPageRegions>

<masterLabel>FastcallDashboardTest</masterLabel>

<type>AppPage</type>

Because the API Version is 38.0 I need to use the pageTemplate instead of using the template attribute.

So, what should I need to put in the <pageTemplate> attribute.

I tried creating a Lightning component (HomePageSingleColumnTemplate) for the template and add it to the flexiPage but didn't work.

Any thought about what's going on?

0

You need to use an existing template fqn, e.g. flexipage:defaultAppHomeTemplate for one of the default templates.

See this doc for how to create your own custom template: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_config_for_app_builder_template_component.htm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.