Developer Function: Server Script: grid.SelectedIds
## Overview
The "「Server Script」" gets the ID of the record selected on the list screen.
## Supported Versions
1. Pleasanter 1.3.34.0 or later
## Syntax
```
grid.SelectedIds()
```
## Parameters
none
## Return Value
Return the record ID of the corresponding record.
## Usage Example
The following example displays the ID of the selected record in the console.
##### Sample code
```JavaScript
for (let id of grid.SelectedIds()) {
context.Log(id);
}
```
## Related Information
<div id="ManualList">
<article class="s-blog_list_unit"><h2>
<h2>The specified information was not found.</h2>
<p><a href="/ja/manual">Return to top</a></p>
</article>
</div><input id="SearchTextHidden" type="hidden" value="" />