> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/quote/_setsalechance.md).

# \_setSaleChance

Sets the Sale chance for a Quote

### Parameters

#### id

The ID of the quote

#### val

The value of sales chance you wish to set up to 100%

### Example

```
FM_api('Quote_setSaleChance', ['id'=>'1', 'val' => '90']);
```

#### On Success

```
{"ok":1}
```
