Hi,
Sorry for the confusion.
Actually post #1 has a relationship field inside Flexible content. In the relationship field, I selected post #2.
There is no way to get the information for the post #2 custom fields. Only post details are available like the_title() and the_content().