Metadata API (10% Weighting) Flashcards
Given a scenario, describe the capabilities, limitations, and considerations when using the Metadata API for deployment
What are the two of the easiest tools to access the functionality in Metadata API?
Force.com IDE or Ant Migration Tool
Name 4 examples of how you can use the Metadata API to manage setup and customization information for your orgs
- Export the customization in your organization as XML metadata files
- Migrate configuration changes between organizations
- Modify existing customization in your organization using XML metadata files
- Manage customization in your organization programmatically
Which editions support the Metadata Api?
Enterprise, Unlimited, Performance or Developer
What does the Modify Metadata Through Metadata API functions permission provide?
You can update metadata (including Apex) through Metadata API even if you don’t have the Modify All Data permission
Which MetaData API operations are used for File-Based Development?
deploy()
retrieve()
Which 3 specifications do Metadata API comply with?
SOAP (Simple Object Access Protocol) 1.1
WSDL (Web Service Description Language) 1.1
WS-I Basic Profile 1.1
What two metadata types are supported by Apex Metadata API (as of the current release)?
Page Layouts
Records of custom metadata types
Is deleting metadata supported by the Apex Metadata API?
No
Is reading, creating and updating metadata supported by the Apex Metadata API?
Yes
You’ve developed a new feature that includes several new custom metadata types. Your admins need to install and configure your feature in multiple orgs. How can you ease the work for your admins?
A) Write an Apex post install script that makes the metadata updates
B) Write careful instructions on how to make the necessary changes in Setup
C) Create a custom setup wizard to simplify the configuration
D) Send them a lovely fruit basket
E) A and C( and D couldn’t hurt)
E) A and C( and D couldn’t hurt)
Apex Metadata API works with which of the following metadata types?
A) All metadata types
B) Page layouts and records of custom metadata types
C) Page layouts and list views
D) Custom metadata types
B) Page layouts and records of custom metadata types
Which of the following is not supported by Apex Metadata API?
A) Creating metadata
B) Reading metadata
C) Updating metadata
D) Deleting metadata
D) Deleting metadata
Scenario: You have 10 orgs and you use managed packages to update the orgs. If you add a custom field for accounts and you want it to show up on the page layouts in all your orgs (without creating repetitive work in the Setup UI for the admins), what can you do?
Use Apex to retrieve the existing metadata for the Account page layout and update it with the new field. Then create an apex post install script that deploys the metadata update
Which of the following can you test?
A) The state of the org after you’ve deployed metadata into it
B) The structure of the deployment container
C) The behavior of your callback
D) A and C
E) B and C
E) B and C
How should you test a metadata deployment request?
A) Exercise your code to build a deployment request, and verify it’s structure
B) Exercise your code to build a deployment request, and enqueue the deployment
C) Add assert statements to your callback
D) All of the above
A) Exercise your code to build a deployment request, and verify it’s structure