Questions tagged [sfdc-metadata-api]

Metadata Api is used to fetch all the metadata for Salesforce

Whenever you want to add/edit metadata component, then metadata api is used. Specially if you want to make a component generic or when you're developing tools or when you're using SFDX then it comes in picture. With normal customization or OOTB stuff it will not come in picture.

26 questions
2
votes
1 answer

Salesforce standard objects accessibility based on org wide share settings and roles

Is there any possible way to fetch the SFDC standard objects such as Accounts, Opportunity, Contacts and Leads based on the accessiblty rules configured in the SFDC using REST API of SFDC? If yes, then how exactly we can pass the user specific…
2
votes
2 answers

What exactly is Metadata API?

What exactly is Metadata API. I heard this terms many times but I am still not able to understand the concept of it. I know how to create API in java or javascript but Many times I have been told to explore Metadata API of the application but still…
Shruti sharma
  • 199
  • 6
  • 21
  • 67
2
votes
1 answer

Package.xml autorefresh VSCode [Salesforce Metadata API]

Is it possible to have VSCode retrieve and update automatically the package.xml file on a daily basis and bring the latest metadata components to it.
Sam
  • 487
  • 4
  • 12
  • 31
1
vote
1 answer

How to read Picklist values via Salesforce Metadata API & simple-salesforce

I am using simple-salesforce to read metadata from some CustomObjects: metadata = _sf.mdapi.CustomObject.read(sf_object_name) This generally works, EXCEPT for a number of Picklist fields: the options return as a named ValueSet instead of a list of…
1
vote
0 answers

How to call Salesforce metadata rest api from curl php

I am trying to deploy metadata records from PHP to salesforce org using salesforce metadata REST API. https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_rest_deploy.htm As per documentation, we are supposed to send the…
1
vote
2 answers

Update fieldPermissions with metadata api of Salesforce

I try to update the permissions on a field created from the API so that it is visible and usable. so I do this via the salesforce metadata API. responses = client.call(:update_metadata, message_tag: :updateMetadata, message: {metadata: { fullName:…
1
vote
2 answers

How to put field validation on ui:inputtext in javascript using lightning component?

How to put field validation on ui:inputtext in JavaScript using lightning component? Below is my html code:
1
vote
1 answer

SOQL query taking more time to execute from C#

I've this query for checking existing contact on Salesforce string queryString="select Id from Contact where Applicant_Email__c = 'testuser78@mailinator.com' or email = 'testuser78@mailinator.com' or Secondary_Email__c =…
Ramesh
  • 243
  • 1
  • 4
  • 15
0
votes
0 answers

XL-Connector With Salesforce

Using XL-Connector with Salesforce is there any way to allow the users only to export the data and restrict Insert/Update/Upsert/Delete operations using XL-Connector. even users having read write permissions on salesforce objects. Restrict…
0
votes
0 answers

MetaData Api With Wrapper class

How can I write a wrapper class for copy custom Contact fields to a custom object called Consultact__c?
Vishal
  • 11
  • 1
0
votes
0 answers

No package.xml not found despite it is presented

I want to deploy an Apex class via REST API in a "single package" way. The deployment process begins and then fails with "No package.xml found" error. The manifest file is put directly in the root of the archive, however the API tells me that there…
0
votes
1 answer

What Object or Table in SFDC starts with and Id prefix of 0EM? Knowledge Articles and Attachments

What Object or Table in SFDC starts with and Id prefix of 0EM? I have uploaded an image into a Knowledge__kav object in Salesforce, which is basically the knowledge article page. And when I open the link to the image, it gives an Id starting with…
R2D2
  • 75
  • 1
  • 9
0
votes
1 answer

Is there any way to fetch fullnames for ProfilePasswordPolicy records using API?

Is there any way to fetch 'fullname' for ProfilePasswordPolicy records? I am trying to update and read records of ProfilePasswordPolicy but getting the error shown in the screenshot. SOAP API error I can get fullnames using workbench but want to get…
0
votes
1 answer

How can we write test class for negative scenario in salesforce?

Below is the code of negative scenario: public void onAddExistingGuest(){ selectedGroups = new Set(); ApexPages.Message msg; msg = new ApexPages.Message(ApexPages.Severity.Error, System.Label.Value_Here); …
Tarique Shamsi
  • 331
  • 1
  • 2
  • 8
0
votes
1 answer

Running sfdx force:auth:web:login on jenkins job

I have a Jenkins job to deploy metadata to a given org. This is meant to be used as a first time setup method for new metadata. I have a jenkinsfile that can run the sfdx commands, and I'm trying to run force:auth:web:login. agent none …
1
2