Exporting Scene at Runtime

I want to export all objects in a scene as an .obj file in UE4 at runtime, since I dynamically create a scene from primitive Objects. I see that if we want to export a scene from editor we can use File->Export option. Is there any way to export a scene while in play mode via C++ code or Blueprint. Can someone help me with this?