Questions about the Metadata API provided by salesforce. The API that can be used to retrieve, deploy, create, update or delete customization information, such as custom object definitions and page layouts, for your organization. This API is intended for managing customizations and for building ...

learn more… | top users | synonyms

3
votes
1answer
28 views

Get List of Tabs which are visible to particular profile

We are modifying our project UI from scratch, and for that we are creating a new bootstrap NAVBAR. Salesforce Tabs are great and are profile based. What we want is feature of boostrap and feasibility ...
0
votes
1answer
9 views

which api does dataloader uses when bulk api is not checked? What is the default API?

Which api does dataloader uses when bulk api is not checked? What is the default API ? I could see explanation for using BULK API in dataloader, but what to know which api is used in default?
0
votes
1answer
19 views

retrieving standard fields in metadata request

On retrieving metadata for sobjects, including standard ones i.e Account object, I note that I am passed back only the custom fields for this object. Any suggestions on how I include standard fields ...
1
vote
1answer
23 views

Retrieve Salesforce Standard objects using Metadata Api

Use case : Need to retrieve standard objects like Account, Case etc using Metadata Api. When we retrieve the list of objects, system objects(ApexClass,ApexTrigger etc) also appears in the list. Need ...
0
votes
0answers
18 views

converting results in numeric overflow error while creating dataset

I am trying to create a dataset in Salesforce using below CSV "Id","percentage","comments" "id0",0.0,"abc" "id1",0.1,"abc" "id2",0.2,"abc" "id3",0.3,"abc" "id4",0.4,"abc" "id5",0.5,"abc" ...
3
votes
1answer
39 views

Migrating connected apps from one dev org to another dev org with the consumer credentials remain unchanged

I have been looking for a solution to migrate my connected apps from one dev org to the other since the other one has partner privilege Is it possible by MetaData API?
1
vote
0answers
13 views

Migrating components not supported by eclipse

How do we migrate metadata from one org to another when they are supported by metadata api but not by eclipse. The examples are sharing rules and matching rules. I have managed to migrate this from ...
3
votes
1answer
34 views

Salesforce Ant Migration Tool - HomePageComponent

I'm trying to figure out when using the Salesforce Metadata API (salesforce ant migration tool) how to pull back the custom links defined within the HomePageComponents. I've pulled down a blanket from ...
0
votes
1answer
12 views

How can I improve the test coverage of MetadataService.cls (recent Version for API v35)?

I'm using the APEX wrapper for Metadata API found here https://github.com/financialforcedev/apex-mdapi Looking at the test coverage, there are a lot of lines uncovered. Can this be improved easily?
0
votes
1answer
22 views

How to update field-level-security using Metadata-API via Apex (using MetadataService.cls)

I'm trying to grant FLS access using MetadataService.cls (found here https://github.com/financialforcedev/apex-mdapi) Assume there is a field Test__c on Account with no FLS permissions granted to ...
1
vote
0answers
24 views

Unable to Deploy file-based Custom Field / Profile Settings to Salesforce SOAP API

We've visited the following link, and followed the examples/instructions to no avail. https://developer.salesforce.com/forums/?id=906F0000000AVifIAG We originally utilized the CRUD-based SOAP API to ...
1
vote
1answer
19 views

How to access the “System Administrator” profile using Metadata-API via Apex (using MetadataService.cls)

I want to access the Standard "System Administrator" profile using MetadataService.cls (found here https://github.com/financialforcedev/apex-mdapi) Therefore I tried this ...
0
votes
0answers
16 views

Enable HistoryTracking for standard object with Metadata Api

When I try to set history tracking for custom object with Metadata API, everything works fine. But, when I try to do the same for standard object, it just doesn't work and I get no error message. Any ...
1
vote
1answer
27 views

Add column to a report via API

Is it possible to add a column to a report via API call? I have a folder with 50 reports that I need to edit.
1
vote
1answer
42 views

Lighting Component : INVALID_SESSION_ID when retrieving picklist values by recordtype using Metadata API

Am using FinancialForce's MetadataService Class to retrieve picklist values by record type ,which works properly in a Remotingmethod. When i try to do the same in lightning component's AuraEnabled ...
3
votes
1answer
32 views

What are the minimum permissions required to update an object record via the Metadata API?

I have a set of custom objects in a managed package that I need to be able to update records on via the Metadata API in my customer's orgs (yeah, I know this is not a good way of doing it, but I'm ...
3
votes
1answer
162 views

Error: An unknown exception has occurred

While validating my changes to the sandbox with Force.com Migration Tool, I suddenly got the below error. Component Failures: 1. objects/PersonAccount.object -- Error: An unknown exception has ...
5
votes
1answer
87 views

Default permissions that are granted when using InstalledPackage?

I have been using InstalledPackage for a while now as a quick way to install managed packages in different orgs without having to log in. It appears that the default permissions that are granted is ...
3
votes
1answer
32 views

Migrate search layout of standard objects

I have added some columns to the lookup and search result layouts of standard objects like account and user. Is there any way to migrate only the search layout part of these objects. I do not want to ...
3
votes
1answer
39 views

Deploy custom tab style

Please tell me how to deploy custom tab styles from one sandbox to another. Will this be a manual step. I did not see this component in metadata api guide nor is it listed as a manual step. Thanks in ...
0
votes
1answer
36 views

Organization-Wide Email Addresses uable to verify email

i have to created email handler and email service and create Organization-Wide Email Addresses but unable to get verification link . i tried to debug in email handler class but not getting any ...
4
votes
1answer
54 views

Metadata Deploy - Package.xml Failure

I am currently receiving an error when doing a metadata deploy. I have the following zip file structure: Zip (File) --> Classes (Folder) --> MyCustomWrapper.cls (Class File) ...
0
votes
2answers
43 views

Set Field Level Security for Standard Fields Using the Metadata API

Can I set Field Level Security for Standard fields using the Metadata API via Eclipse? To my knowledge this is not possible, but there are some smart cookies on here who may have a solution or ...
2
votes
0answers
41 views

Person Account RecordTypes metadata

I have Person Accounts enabled in my sandbox org. When I pull the (objects/Account.object) metadata in Eclipse I don't see any Person Account record types in Account.object. I can see record types ...
0
votes
1answer
35 views

Can not create custom field by Tooling API

I'm trying to create custom field by tooling api, but i got the error when i invoked create method. <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope ...
1
vote
1answer
13 views

Strange result after readMetadata() call

I'm noticing a strange behaviour in the Metadata API's readMetadata() method which affects my custom implementation. Please, find below screen shots describing the issue. I hope somebody can help me ...
0
votes
0answers
19 views

Versioning difference between Metadata and Tooling

I face some issues with using of Tooling API that I did not see before. For instance if I update local copy from git and Force.com -> Work Online option is set, eclipse deploy local copy and override ...
1
vote
1answer
66 views

Deploying .settings - Error: Not available for deploy for this organisation

I am trying to deploy some .settings files to an org. The org is a sandbox of where the original metadata was pulled from. This is the following error I am receiving, but it's not very descriptive. ...
1
vote
1answer
35 views

Writing test class for metadata api - called by triggers

I need help to write a test class for metadata api. Basically I'm using metadata api class to update the picklist values with list of user names. so whenever a user object is inserted the trigger will ...
0
votes
0answers
19 views

Get list of fields of event page layout using metadata api

I'm trying to Get list of fields of event page layout using metadata api. My code for the same is below: MetadataService mBinding = new MetadataService(); mBinding.SessionHeaderValue = new ...
0
votes
0answers
9 views

DescribeLayout method of partner api returns exception

describeLayout method of partner api returns exception "The specified type was not recognized: name='VisualforcePage', namespace='urn:partner.soap.sforce.com', at layout." Hi, I'm using partner api ...
0
votes
2answers
31 views

Read Timeout error while making an API Inbound call to Salesforce

Getting Read Timeout error while making an API Inbound call to Salesforce. Is it possible to check at Salesforce is receiving connections.
1
vote
2answers
53 views

Receiving an error via Force.com Migration Tool for a simple deployment of metadata. Thoughts?

Here's the error: All Component Failures package.xml -- Error: No package.xml found package.xml -- Error: Bad file:Unexpected element < http://soap.sforce.com/2006/04/metadata > ...
3
votes
1answer
86 views

Lightning component deployment

I have created few lightning component in my GSO ORG and now I want to deploy it to my another ORG I created a below mentioned package . It is retrieving the lightning components and creating a ...
0
votes
1answer
43 views

Metadata API throwing exception when flow triggers are in the system

I am trying to get a list of workflows created over several objects through Metadata API. When i call the readMetadata() of MetadataService class, I got this exception: System.CalloutException: ...
0
votes
1answer
49 views

MavensMate Firewall issues

I am behind a very strict firewall at work and I am moving from Eclipse to MavensMate (+Sublime). Eclipse can both send and receive metadata from Salesforce fine, but MavensMate is not making it ...
1
vote
1answer
19 views

All formula fields are not retrieved in object metadata

I have retrieved Object metadata in Eclips. However some Formula fields are not showing in object metadata. Is there any way to fetch all formula fields for all objects available in sales-force org.
1
vote
1answer
56 views

How to update Description of custom object through API

I want to update Description field which appears under Custom Object Definition of a custom object via REST call. I referred Tooling and Metadata API documentation, but could not figure out a way do ...
0
votes
2answers
73 views

How to create a new instance of a custom object using MetaData API?

Hi all — I have code to create a custom object, which works, but I actually already have a custom object in my system called Invoice. I guess what I really want to create is a new instance of a custom ...
1
vote
2answers
30 views

How to export and version control all metadata of an org

How to export and version control all metadata of an org, by saying that, I mean if I import all these metadata into a brand new org, it will create an identical org as the original org. THIS HAS TO ...
1
vote
1answer
21 views

Using Quickdeply from metadata API

Do I need to pass any special parameters when I use Quickdeploy using metadata api ? Or should I just use the validate option and it sends the info to the org for Quickdeploy? How does ANT know when ...
0
votes
0answers
14 views

Metadata API : dynamic picklist update - picklistvalue in a loop

I had retrieved the list of user names that is to be updated via metadata api to the custom picklist in the sobj 'contact'. Question is how do i update the picklist values in the loop? ...
0
votes
1answer
47 views

Metadata API (via APEX class) IO Exception: Unauthorized endpoint / Web service callout failed: WebService returned a SOAP Fault:

I'm trying to update the picklist value of a custom field in sobj 'Contacts' via the usage of metadata API. So far I was able to: Generate the apex class form WSDL fix the issue with session id ...
2
votes
1answer
50 views

metadata api : INVALID_SESSION_ID:

To update a picklist value I'm referring to the metadataclass.cls I'm calling a class method (as like in metadadataclass example) to update the picklist value via a trigger (class method set to ...
0
votes
0answers
11 views

Person Account Record Types in Metadata [duplicate]

I have a sandbox with person accounts enabled. But when I fetch the metadata through Metadata API (of version 34), I don't have any PersonAccount.object file fetched or neither the Account object is ...
2
votes
1answer
45 views

How to get the API name of the fields used as a filter within a report?

I'm trying to get the fields used within a report. By using Reports.ReportManager.describeReport I'm able to get a lot of information about the report. Unfortunatly I'm not getting the API name of the ...
0
votes
1answer
31 views

how to access MetadataService.cls and use it?

How to access MetadataService.cls and use it? I want to modify the picklist values and reading couple of post I could understand that using MetadataService.cls i can achieve it but i dont know where ...
0
votes
0answers
30 views

Why doesn't Force.com IDE / metadata API download all objects and WF rules?

I configured my Force.com project in Eclipse to download ALL standard and custom objects, but it skipped some, e.g. it didn't download CaseTeam, CaseCommnet, EmailMessage, etc. - at first I thought ...
1
vote
0answers
83 views

Metadata API returns empty picklist value translations

I try to read translated picklist values with the metadata API. But i am not able to retrieve the translated values. The returned PicklistValueTranslation objects are only contains the masterlabel but ...
1
vote
1answer
24 views

SOAP updateMeta operation for CustomSite

I wanna change the homepage of a Force.com Site using the Metadata API. Nothing fancy, so: I've prepared a new updateMetadata request, set fullName to the API name of the site, put indexPage to the ...