# FString to FBlueprintSessionResult

**URL:** <https://forums.unrealengine.com/t/fstring-to-fblueprintsessionresult/433262>\
**Category:** C++\
**Tags:** unreal-engine, UE4, CPP, question\
**Created:** [September 5, 2018, 9:55pm UTC](https://forums.unrealengine.com/t/fstring-to-fblueprintsessionresult/433262 "2018-09-05T21:55:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xcibe95x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xcibe95x](https://forums.unrealengine.com/u/xcibe95x)\
**Post date:** [September 5, 2018, 9:55pm UTC](https://forums.unrealengine.com/t/fstring-to-fblueprintsessionresult/433262/1 "2018-09-05T21:55:34Z")

</div>

Hello i’m trying to make an inverse blueprint node of Get Server Name

> **[Get Server Name](https://docs.unrealengine.com/4.27/en-US/BlueprintAPI/Online/Session/GetServerName/)**
>
> Get Server Name

I have it’s original source code wich is not working it gives errors.  
Can i get some help to create my own custom node that does inverse conversion.

Original Source Code

```
.h file

UFUNCTION(BlueprintPure, Category = "Online|Session")
static FString GetServerName(const FBlueprintSessionResult& Result);

.cpp file

FString UFindSessionsCallbackProxy::GetServerName(const FBlueprintSessionResult& Result)
{
	return Result.OnlineResult.Session.OwningUserName;
}
```

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [September 5, 2018, 9:58pm UTC](https://forums.unrealengine.com/t/fstring-to-fblueprintsessionresult/433262/2 "2018-09-05T21:58:28Z")

</div>

If you got errors, please state them or else we can only guess whats wrong

---

<div class="post-metadata">

**Author:** ![xcibe95x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xcibe95x](https://forums.unrealengine.com/u/xcibe95x)\
**Post date:** [September 5, 2018, 10:21pm UTC](https://forums.unrealengine.com/t/fstring-to-fblueprintsessionresult/433262/3 "2018-09-05T22:21:00Z")

</div>

it says FBlueprintSessionResult is not defined and bunch of other errors

 ![252872-dafwe.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/1/3b1985bcd72d77b591d184f5c78573dcf5ea5d96.png)

---

<div class="post-metadata">

**Author:** ![xcibe95x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xcibe95x](https://forums.unrealengine.com/u/xcibe95x)\
**Post date:** [September 5, 2018, 11:16pm UTC](https://forums.unrealengine.com/t/fstring-to-fblueprintsessionresult/433262/4 "2018-09-05T23:16:09Z")

</div>

I figured it out my self! as i tought i had a problem with dependencies so i add them in my build.cs  
add the include to the correct file and now it’s working like a charm.

---

<div class="post-metadata">

**Author:** ![xcibe95x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xcibe95x](https://forums.unrealengine.com/u/xcibe95x)\
**Post date:** [September 5, 2018, 11:28pm UTC](https://forums.unrealengine.com/t/fstring-to-fblueprintsessionresult/433262/5 "2018-09-05T23:28:23Z")

</div>

Got everything working now, how do i make it does the invert process now?  
Right now is the same as the existing one FBlueprintSessionResult to FString i want it to be FString to FBlueprintSessionResult.

---

<div class="post-metadata">

**Author:** ![xcibe95x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xcibe95x](https://forums.unrealengine.com/u/xcibe95x)\
**Post date:** [September 5, 2018, 11:44pm UTC](https://forums.unrealengine.com/t/fstring-to-fblueprintsessionresult/433262/6 "2018-09-05T23:44:11Z")

</div>

Nevermind i just realized now it is not possibile to make it back to a session since it just gives the name of the server! i’m so stupid lmao. Guess i have to find a workaround for what i want to do.
