I'm looking for a way to custom create a placeholder formula field. SOAP doesn't allow formula field.
I see a few ways online using force.com IDE, but now I'm trying it out on VSCode and I'm kind of lost. I'm able to generate an xml file for each field, then right click and "Deploy Source to Org", but that doesn't sound like the best way of creating a lot of fields.
Code for example
sfdx force:source:deploy --sourcepath c:\Users\xxxx\Documents\Salesforce\force-app\main\default\objects\Account\fields\sample1234__c.field-meta.xml --json --loglevel fatal
File:
<?xml version="1.0" encoding="UTF-8"?>
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Sample1234__c</fullName>
<externalId>false</externalId>
<formula>'placeholder'</formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
<label>Sample1234</label>
<required>false</required>
<trackHistory>false</trackHistory>
<type>Text</type>
<unique>false</unique>
</CustomField>