--- title: CaseCreation component (Deprecated) slug: '1071' canonical_url: https://docs.coveo.com/en/1071/ collection: coveo-for-salesforce source_format: adoc --- # CaseCreation component (Deprecated) > **Deprecated** > > This feature is still available, but no longer supported as of the April 2020 release of Coveo for Salesforce version [4.2](https://docs.coveo.com/en/3236#april-2020-release-v4-2-initial-release). The `CaseCreation` component creates a form that allows Salesforce users to submit a case. The form automatically searches for solutions while the user is filling form parameters. To work, this component needs to interact with other components that contain the necessary information to create the case. > **Note** > > A `CaseCreation` component must be present in the page for the form to work. ## List of components - [Cancel component (Deprecated)](https://docs.coveo.com/en/1266/) - [Field component (Deprecated)](https://docs.coveo.com/en/1114/) - [Picklist component (Deprecated)](https://docs.coveo.com/en/1258/) - [Submit component (Deprecated)](https://docs.coveo.com/en/1095/) ## Options ### searchSort Specifies how to sort the results. > **Notes** > > * For more information on the way sorting works, see [`$some`](https://docs.coveo.com/en/1462#some). > * The `fielddescending` and `fieldascending` sorts are unavailable for this component. **Examples** **Initialization configuration example:** ```javascript searchSort: 'datadescending' ``` **Markup configuration example:** ```xml data-search-sort='rankingexpressions' ``` The default value is `relevancy`. ### useSomeQRE Specifies whether to generate the query using the [`$some`](https://docs.coveo.com/en/1462#some) query extension instead of [Coveo Machine Learning (Coveo ML)](https://docs.coveo.com/en/188/). Setting this option to true effectively disables Coveo ML for this component. See also the [`someBest`](https://docs.coveo.com/en/1071/), [`someMatch`](https://docs.coveo.com/en/1071/), and [`someMaximum`](https://docs.coveo.com/en/1071/) options. **Examples** **Initialization configuration example:** ```javascript useSomeQRE ``` **Markup configuration example:** ```xml data-use-some-q-r-e='true' ``` The default value is `false`. ### someBest Specifies an absolute or relative (percentage) value indicating the number of best keywords that the query must match (see [`$some`](https://docs.coveo.com/en/1462#some)). > **Note** > > Keywords that occur less frequently in the index are considered better than those that are very common. Specifying a value for this option is only useful if the [`useSomeQRE`](https://docs.coveo.com/en/1071/) option is `true`. **Examples** **Initialization configuration example:** ```javascript someBest : '50%' ``` **Markup configuration example:** ```xml data-some-best='1' ``` The default value is the empty string. ### someMatch Specifies an absolute or relative (percentage) value indicating the minimum number of keywords that the query must match (see [`$some`](https://docs.coveo.com/en/1462#some)). Specifying a value for this option is only useful if the [`useSomeQRE`](https://docs.coveo.com/en/1071/) option is `true`. **Examples** **Initialization configuration example:** ```javascript someMatch : '5' ``` **Markup configuration example:** ```xml data-some-match='50%' ``` The default value is the string `1`. ### someMaximum Specifies the maximum number of keywords to use (see [`$some`](https://docs.coveo.com/en/1462#some)). If the query contains a larger number of keywords, remaining keywords are simply ignored. Specifying a value for this option is only useful if the [`useSomeQRE`](https://docs.coveo.com/en/1071/) option is `true`. **Examples** **Initialization configuration example:** ```javascript someMaximum : '100' ``` **Markup configuration example:** ```xml data-some-maximum='150' ``` The default value is `300`. The minimum value is `0`. ### searchDelay Specifies the delay (in milliseconds) before triggering a new query when the end user types new text inside a `Field` component. **Examples** **Initialization configuration example:** ```javascript searchDelay : 250 ``` **Markup configuration example:** ```xml data-search-delay='500' ``` The default value is `500`. The minimum value is `0`. ### searchType Specifies to return only a certain type of results (see [`$some`](https://docs.coveo.com/en/1462#some)). **Examples** **Initialization configuration example:** ```javascript searchType : 'Opportunity' ``` **Markup configuration example:** ```xml data-search-type='Account' ``` The default value is the empty string. ### openLinkInNewWindow Specifies whether to open the link that the component creates in a new window. **Examples** **Initialization configuration example:** ```javascript openLinkInNewWindow : false ``` **Markup configuration example:** ```xml data-open-lin-in-new-window='false' ``` The default value is `true`. ### useDefaultRule Specifies whether to use the Assignment Rules (see [Set Up Assignment Rules](https://help.salesforce.com/articleView?id=creating_assignment_rules.htm&type=0)). **Examples** **Initialization configuration example:** ```javascript useDefaultRule: false ``` **Markup configuration example:** ```xml data-use-default-rule='false' ``` The default value is `true`. ### sendCaseDataToAnalytic Specifies whether the component should send case-related metadata when logging case creation events in the [Coveo Analytics](https://docs.coveo.com/en/182/) service. **Examples** **Initialization configuration example:** ```javascript sendCaseDataToAnalytic : false ``` **Markup configuration example:** ```xml data-case-data-to-analytic='false' ``` The default value is `true`. ## Methods ### createCase Creates a case with the information included in the form. #### Parameters > **Obsolete** > > This feature is no longer available as of the November 2022 release of Coveo for Salesforce version [4.29](https://docs.coveo.com/en/3236#november-2022-release-v4-29). `redirectUrl` (Optional) Where to redirect the user after the case has been created. **Example** [,javascript] ``` $('#myCaseCreation').coveo('createCase', redirectUrl?: string) ``` ## Sample ```xml
```