RemoveFavorites() public method

Removes one or multiple objects from the user’s list of Favorite items.

objectIds must not be null or empty.

It mirrors To the following Smartsheet REST API methods: DELETE /favorites/folder DELETE /favorites/report DELETE /favorites/sheet DELETE /favorites/sight DELETE /favorites/template DELETE /favorites/workspace

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public RemoveFavorites ( ObjectType type, IList objectIds ) : void
type ObjectType the object type to remove
objectIds IList (required): a comma-separated list of object IDs representing the items to remove from Favorites
return void
Example #1
0
        public virtual void TestRemoveFavorites()
        {
            server.setResponseBody("../../../TestSDK/resources/deleteFavorites.json");

            favoriteResource.RemoveFavorites(ObjectType.FOLDER, new long[] { 117117117, 343434343 });
        }