Not sure I understand your specifics, add details if I am off. I assume:
- Your shortcode inside post’s content.
- You have custom field in that post with value you want.
In this case declare in your shortcode function global $post;
and use $post->ID
to retrieve custom field.