-1

In my sandbox, the Campaign Member object has a field AccountId, and this field is not custom field, as it does not have __c, hence it is standard field.

In my production, the Campaign Member object does not has a field AccountId

So, I need to deploy this field to my production, how to deploy the standard field?

Via SFDX does not work:

Error CampaignMember.AccountId fullName must end with: __c or __kav or __x or __b or __e or __p or __mdt or __dll or __dlm

And via Change Set does not work too: https://developer.salesforce.com/forums/?id=9060G000000I24dQAC

3

2 Answers 2

2

You cannot deploy standard fields (unless you want to change some attributes of an existing standard field like helptext, label etc) as they must be available in every org by itself. If field is not available in production, it may be due to some license or feature limitation.

I would advise you create support ticket with Salesforce clarifying why that field is not there.

2
  • 1
    N.B. - you can deploy some attributes of standard fields - help text, encryption, history tracking, and of course, their related standardValueSets
    – cropredy
    Mar 9 at 18:22
  • 2
    @cropredy yes, including label of field. I meant, you cannot create that field to start with. Updated the answer to clarify that.
    – metasync
    Mar 9 at 19:03
1

Search for "Accounts As Campaign Member" In setup

Change the radio button to enable.

The field will be visible in the campaign member

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.