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
0
votes
0 answers

how to avoid duplicated record while json import+ salesforce sfdx

I would like to import contact records but i see some of the duplicate records are inserting. I know there is a option to avoid the duplicating is "External ID" through importing wizard. But here, i'm importing the data using JSON but not sure how…
RKCY
  • 4,095
  • 14
  • 61
  • 97
0
votes
1 answer

Mule4: JSON/Java payload structure for SFDC UPSERT operation for cross parent relationship fields

I am upserting records to a object in salesforce using SFDC connector using oauth username and password. I am using external Id(say ext_Id__c) for this operation. Consider a object name as order. There is a field say 'merchant__c' which is a…
0
votes
0 answers

SFDX cannot deploy contentasset to an empty scratch org

I have been trying to install a package that has a contentasset metadata using sfdx force:mdapi:deploy I have been getting this error each time. Any Idea what might be causing this error?
Bonish Koirala
  • 641
  • 5
  • 16
0
votes
1 answer

Retrieve the formulas from the Salesforce Formula fields

I am looking for a way to get the formulas from Salesforce Formula fields. We are using the CDATA Drivers to connect to Salesforce. But I am not seeing any option to retrieve the Salesforce formulas.
Saqib Ali
  • 3,953
  • 10
  • 55
  • 100
0
votes
2 answers

How to create Salesforce incremental package.xml automatically?

Does anyone experiment in creating salesforce Package.xml automatically for continuous integration? If there any script or some idea please share. You know incremental package.xml helps to deploy only the modified files rather than using complete…
0
votes
1 answer

How to resolve MetadataAPI giving 'System.CalloutException: IO Exception: Read timed out' error on setting recordType to lookupfield value

I am using metadata API to add picklist value('custom') in a field.I have a record type (AAM_T) created which has to be associated with value I have added to picklist, but as on running : service.updateMetadata( new MetadataService.Metadata[] {…
0
votes
1 answer

How to insert all Picklist values as Active in already inserted picklist field through metadata api

I have the following code...but When i am inserting multi values to picklist field through metadata api all values are inserted but as inactive value only last value is inserted as active and this last active value make the all prior values as…
0
votes
1 answer

Apex script to uninstall an unmanaged package throws INSUFFICIENT_ACCESS: insufficient access rights error

I'm trying to write a simple script in apex to handle the uninstallation of an unmanaged package. The code is as follows public static void uninstallPackage() { String[] fullNames = new String[1]; fullNames[0] = 'SomePackage'; …
rrk
  • 109
  • 1
  • 3
  • 11
0
votes
1 answer

Need to combine data in two tables due to split csv imports

I built a SQL db to store SFDC data = I used the import wizard to load data from the weekly export in SFDC. Some of the larger objects were broken into multiple csv files - being the newbie that I am I ended up with two tables that I need to…
0
votes
0 answers

In update Trigger event does it also means trigger.new != trigger.old

if(Trigger.IsUpdate || Trigger.IsAfter) { if( STP_TriggerHandler.mail(Trigger.New); }
Venky
  • 103
  • 1
  • 4
-1
votes
1 answer

Salesforce's Metadata API .describe() method missing many fields compared to .read()

When I use simple-salesforce's Metadata api read method _sf.mdapi.CustomObject.read(sf_object_name), I get what seems to be a full list of fields from my object. However, if I use the describe method getattr(_sf, sf_object_name).describe(), the…
1
2