No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
describeFlexiPages()
Retrieves metadata details about a set of Flexible Pages. A Flexible Page is the home page for a mobile app that appears as a menu item in the Salesforce1 navigation menu.
Syntax
1DescribeFlexiPageResult[] = connection.describeFlexiPages(string flexiPageNames[]);Usage
Use this call to retrieve information about the specified Flexible Pages. This call returns metadata about a set of Flexible Pages, such as each Flexible Page’s layout and associated QuickActions.
If you supply an empty list for flexiPageNames, no Flexible Pages are returned.
Sample Code—Java
This sample shows how to get a Flexible Page. It calls describeFlexiPage() with the name of a Flexible Page to describe. After getting the Flexible Page, it prints out the regions, components and properties.
1swfobject.registerObject("clippy.codeblock-1", "9");public void describeFlexiPageSample() {
2 try {
3 // Retrieve a single FlexiPage
4 String flexiPageName = "MyFlexiPage";
5 DescribeFlexiPageResult[] result = null;
6 result = connection.describeFlexiPages(new String[]{flexiPageName});
7 String msg = String.format("There are %s FlexiPages described in the response", result.length);
8 System.out.println(msg);
9 DescribeFlexiPageResult page = result[0];
10
11 // Iterate over the regions of the FlexiPage
12 for (DescribeFlexiPageRegion region : page.getRegions()) {
13 msg = String.format("Region: %s", region.getName());
14
15 // Iterate over the components in each region
16 for (DescribeComponentInstance cmp : region.getComponents()) {
17 String fullComponentName = cmp.getTypeNamespace() + ":" + cmp.getTypeName();
18 System.out.println("Component: " + fullComponentName);
19
20 // Iterate over the properties of each component
21 for (DescribeComponentInstanceProperty prop : cmp.getProperties()) {
22 msg = String.format("Property [%s] has value [%s]", prop.getName(), prop.getValue());
23 System.out.println(msg);
24 }
25 }
26 }
27 } catch (ConnectionException ce) {
28 ce.printStackTrace();
29 }
30}Faults
Arguments
| Name | Type | Description |
|---|---|---|
| flexiPages | string[] | An array of Flexible Pages to be retrieved. |