2

I have custom field on Knowledge object. And made that custom field as required on Knowledge page layout. When I deploy using ant from one sand box to another that custom field is not effected(means it still not mandatory filed) on knowledge page layout. In meta data I have added 'Required' tag manually but I could not deploy it.

<layoutSections>
        <customLabel>true</customLabel>
        <detailHeading>true</detailHeading>
        <editHeading>true</editHeading>
        <label>Details</label>
        <layoutColumns>

            <layoutItems>
                <field>Cfield1__c</field>
            </layoutItems>
            <layoutItems>
                <field>CField2__c</field>
            </layoutItems>
        </layoutColumns>
        <style>OneColumn</style>
    </layoutSections>
1

According to description in documentation :

Note: KAVs, attempting to explicitly specify UiBehavior will result in an exception.

This means that field <behaviour> tag is not allowed in Knowledge Article layout metadata.

There seems to be some limitation and there is also an Idea about this.

You could consider deploying this change as a manual step.

  • Thanks for the update – Ajay Magapu Nov 13 '19 at 2:29

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.