mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-07-30 03:09:50 +08:00
1.2 KiB
1.2 KiB
TransactableMarketplacePrivateOfferSettings XML Template
Use this exact structure when writing the settings metadata file.
File path
<packageDir>/settings/TransactableMarketplacePrivateOffer.settings
Template
<?xml version="1.0" encoding="UTF-8"?>
<TransactableMarketplacePrivateOfferSettings xmlns="http://soap.sforce.com/2006/04/metadata">
<enableTransactableMarketplaceReceivePartnerOffers>true</enableTransactableMarketplaceReceivePartnerOffers>
</TransactableMarketplacePrivateOfferSettings>
Replace true with false to disable.
Notes
- The metadata type is
TransactableMarketplacePrivateOfferSettings, available from API version 67.0+. - This type is registered with
apiCreateAllowed="false"andapiDeleteAllowed="false"— it can only be updated, not created or deleted via the API. This does NOT mean you should skip writing the file: the preference always exists in the org with a default value, so writing a new local settings file and deploying it is treated as an update by the Metadata API and is always valid. - The
xmlnsattribute is required; omitting it causes a deploy parse error. - The field name is
enableTransactableMarketplaceReceivePartnerOffers(note theenableprefix).