0

I am deploying a quick action on case object using VS Code but I am getting the below validation error and I am not able to remove this error :-

Case.Email_Random_Name  Action  0   0   Required fields are missing: [DefaultValueFormula] 

Please help me how to fix this error.

Below is the metadata for the quick action that I am trying to deploy :-

<?xml version="1.0" encoding="UTF-8"?>
<QuickAction xmlns="http://soap.sforce.com/2006/04/metadata">
    <description>Random Description</description>
    <fieldOverrides>
        <field>BccIds</field>
    </fieldOverrides>
    <fieldOverrides>
        <field>CcAddress</field>
        <formula>IF(BEGINS(Case.OwnerId,&apos;005&apos;), Case.Owner:User.Email, NULL)</formula>
    </fieldOverrides>
    <fieldOverrides>
        <field>HtmlBody</field>
        <formula>&apos;&apos;</formula>
    </fieldOverrides>
    <fieldOverrides>
        <field>ReplyToEmailMessageId</field>
        <formula>NULL</formula>
    </fieldOverrides>
    <fieldOverrides>
        <field>Subject</field>
        <formula>&apos;re: &apos;+Case.Subject</formula>
    </fieldOverrides>
    <fieldOverrides>
        <field>ToAddress</field>
        <formula>Case.Contact.Email</formula>
    </fieldOverrides>
    <fieldOverrides>
        <field>ValidatedFromAddress</field>
        <literalValue>test@random.com</literalValue>
    </fieldOverrides>
    <optionsCreateFeedItem>true</optionsCreateFeedItem>
    <quickActionLayout>
        <layoutSectionStyle>TwoColumnsLeftToRight</layoutSectionStyle>
        <quickActionLayoutColumns>
            <quickActionLayoutItems>
                <emptySpace>false</emptySpace>
                <field>ValidatedFromAddress</field>
                <uiBehavior>Edit</uiBehavior>
            </quickActionLayoutItems>
            <quickActionLayoutItems>
                <emptySpace>false</emptySpace>
                <field>ToAddress</field>
                <uiBehavior>Edit</uiBehavior>
            </quickActionLayoutItems>
            <quickActionLayoutItems>
                <emptySpace>false</emptySpace>
                <field>CcAddress</field>
                <uiBehavior>Edit</uiBehavior>
            </quickActionLayoutItems>
            <quickActionLayoutItems>
                <emptySpace>false</emptySpace>
                <field>BccAddress</field>
                <uiBehavior>Edit</uiBehavior>
            </quickActionLayoutItems>
            <quickActionLayoutItems>
                <emptySpace>false</emptySpace>
                <field>Subject</field>
                <uiBehavior>Edit</uiBehavior>
            </quickActionLayoutItems>
            <quickActionLayoutItems>
                <emptySpace>false</emptySpace>
                <field>HtmlBody</field>
                <uiBehavior>Edit</uiBehavior>
            </quickActionLayoutItems>
        </quickActionLayoutColumns>
        <quickActionLayoutColumns/>
    </quickActionLayout>
    <quickActionSendEmailOptions>
        <ignoreDefaultEmailTemplateSubject>false</ignoreDefaultEmailTemplateSubject>
    </quickActionSendEmailOptions>
    <standardLabel>SendEmail</standardLabel>
    <targetObject>EmailMessage</targetObject>
    <targetParentField>Parent</targetParentField>
    <type>SendEmail</type>
</QuickAction>

Thanks, SFDC Alex

0
<fieldOverrides>
    <field>BccIds</field>
</fieldOverrides>

At this point, there was no formula tag in the metadata hence the error was coming. I manually wrote the formula tag in the metadata file as :-

<fieldOverrides>
    <field>BccIds</field>
    <formula>NULL</formula>
</fieldOverrides>

I populated the formula field with whatever value I wanted to be deployed in the target org.

| improve this answer | |

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.