I have an SDF project that includes the object XML...
# sdf
e
I have an SDF project that includes the object XML for a saved search that references a bunch of SPS Commerce fields as well as 2 SPS custom records for Package and Package Content records. SDF won’t allow me to deploy the project since it is missing the dependencies for the 2 custom records and I can’t download those objects into the SDF project because they are locked. How does one go about doing this other than removing the object XML that references those custom records?
m
manually add those objects/fields to the
<dependencies>
section of
manifest.xml
. SDF will check to make sure those objects already exist in the target environment before deploying and fail if they do not exist.
Copy code
<manifest projecttype="ACCOUNTCUSTOMIZATION">
  <projectname>okta</projectname>
  <frameworkversion>1.0</frameworkversion>
  <dependencies>
    <features>
      <feature required="true">ADVANCEDPRINTING</feature>
      <feature required="true">SERVERSIDESCRIPTING</feature>
      <feature required="false">CREATESUITEBUNDLES</feature>
      <feature required="false">CRM</feature>
      <feature required="true">WORKFLOW</feature>
    </features>
    <objects>
      <object>custbody_ce_type</object>
      <object>custbody_opportunity_close_date</object>
    </objects>
  </dependencies>
</manifest>
👍 1
e
Thanks! I will try that.