Play Games

Search This Blog

Wednesday, June 8, 2022

Retrieve assignment rules using package.xml in visualstudio code salesforce - Salesforce Globe For You

Solution: If you want to retrieve all Lead assignment rules use the package.xml given below


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<Package xmlns="http://soap.sforce.com/2006/04/metadata">

<types>

<members>Lead</members>

<name>AssignmentRules</name>

</types>

<version>53.0</version>

</Package>


If you want to retrieve all Case assignment rules use the package.xml given below


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<Package xmlns="http://soap.sforce.com/2006/04/metadata">

<types>

<members>Case</members>

<name>AssignmentRules</name>

</types>

<version>53.0</version>

</Package>


If you want to retrieve all assignment rules use the package.xml given below


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<Package xmlns="http://soap.sforce.com/2006/04/metadata">

<types>

<members>*</members>

<name>AssignmentRules</name>

</types>

</Package>


If you want to retrieve specific lead assignment rule for example 'Assign To Thomson' rule 

use the package.xml given below


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<Package xmlns="http://soap.sforce.com/2006/04/metadata">

<types>

<members>Lead.Assign To Thomson</members>

<name>AssignmentRule</name>

</types>

<version>53.0</version>

</Package>


Output:



No comments:

Post a Comment