SalesTeam Not a valid enumeration for type: class com.sforce.soap.metadata. FilterScope

When working with Copado you might get the error below:

"SalesTeamNot a valid enumeration for type: class com.sforce.soap.metadata.FilterScope"

This error can appear when committing, promoting or deploying user stories. 

According to the Salesforce Metadata API documentation below, "SalesTeam" is a value of the "FilterScope" tag in the List Views that is new on api 49.
https://developer.salesforce.com/docs/atlas.en-us.226.0.api_meta.meta/api_meta/meta_listview.htm

Copado is still on api 48 therefore that value in the object file is causing issues when we process the object file that contains the list view with that value.
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_listview.htm

The workarounds to overcome this error until Copado is upgraded to API 49 are:

- If the error is returned during the commit process:
 
1. Change the value in the source environment to any of the supported ones on api 48, commit, promote and deploy. Update the value in the target org manually to SalesTeam after deploying.
2. Use the Global Find and Replace feature to automatically change the value from SalesTeam to a supported one on api 48 during the commit. Note that Copado Support cannot create, edit or review regex expressions.
 
- If the error is returned during the promotion process:
 
1. You need to make sure there is no "SalesTeam" value in the "FilterScope" tag in the List Views for the object returning the error you you can apply the workarounds mentioned above for the commit process.

- If the error is returned during the deployment process:
 
1. In the promotion branch, change the "SalesTeam" value for one of the supported ones on api 48, deploy and then update the value in the target org manually to SalesTeam after deploying.
2. Change the value in the source environment to any of the supported ones on api 48, commit, promote and deploy. Update the value in the target org manually to SalesTeam after deploying.
3. Use the Global Find and Replace feature to automatically change the value from SalesTeam to a supported one on api 48 during the commit. Note that Copado Support cannot create, edit or review regex expressions.

How did we do?