• Rajnish Songara 1
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Just getting started here, crash course in Packaging for a new org we are building.

Created a scratch org, made some basic changes:
  • 5 x Account Record Types
  • 6 x Custom Text/Number Fields
  • Amended a Layout
  • Gave Sys Admin Profile field permissions.
Pulled the changes into my VS and Repository.

Now want to create a package and configured package.xml as:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    
    <types>
        <members>Account</members>
        <name>CustomObject</name>
    </types>
    <types> 
        <members>Account.AccountSource</members> 
        <name>CustomField</name> 
    </types> 
    <types> 
        <members>LeadSource</members> 
        <name>StandardValueSet</name> 
    </types> 
    <types>
        <members>Account.CXC_Client</members>
        <members>Account.CXC_Contractor_Company</members>
        <members>Account.CXC_Contractor_Employee</members>
        <members>Account.CXC_Entity</members>
        <members>Account.CXC_Service_Partner</members>
        <members>Account.CXC_Supplier</members>
        <name>RecordType</name>
    </types>
    <types>
        <members>Admin</members>
        <name>Profile</name>
    </types>

Get the following error :

Account.Client: Picklist value: Advertisement in picklist: AccountSource not found

Lots of reading and links and changes and variations but still can't get it working.  Do I have the order wrong?  Do I need to do something else first?  Everything i have read suggests it is the right approach.
  • January 03, 2020
  • Like
  • 0