Monday, August 13, 2012

Criteria based sharing rule with Force.com ANT tool - The Guide is wrong!

The Force.com Migration Tool Guide says to use criteriaBasedRules as the name (see page snapshot below).  Well, that'd just give you this error: Unknown entity:criteriaBasedRules



The correct name/syntax would be like this:
    <types>
        <members>Share_to_BIT</members>
        <name>CaseCriteriaBasedSharingRule</name>
    </types>
That's for case and I'd imagine for others (Campaign, etc.) just use the appropriate prefix.

No comments:

Post a Comment