# JournalId.FromGrainId(GrainId)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.journalid/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.journaling.journalid/methods/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Journaling/JournalId.cs#L37-L42)

```csharp
public static JournalId FromGrainId(GrainId grainId)
```

Creates a journal id from a grain id.

### Parameters

- `grainId` (`GrainId`): The grain id.

### Returns

The journal id.
