AFAIR get_field()
function comes with ACF and there is no such function built in WP.
It isn’t obvious, based on your code, that you use ACF plugin on your site, so there is a chance it might not work.
But, since you already use native WP function for setting the meta data, then it would be good idea to use native WP function to get that value as well.
Also, I wouldn’t hide that button using CSS. I would change your code (part that is responsible for printing the button) to this:
<?php if ( get_post_meta(get_the_ID(), '_sales_email', true) ) : ?>
<div class="dbtn_sales"><a href="https://wordpress.stackexchange.com/questions/325532/mailto:[foobar name=_sales_email]">Email Sales</a></div>
<?php endif; ?>
Also… If that value comes from user input, then it would be a good idea to assure it is properly escaped:
<?php if ( get_post_meta(get_the_ID(), '_sales_email', true) ) : ?>
<div class="dbtn_sales"><a href="https://wordpress.stackexchange.com/questions/325532/mailto:<?php esc_attr( get_post_meta(get_the_ID(),"_sales_email', true) ); ?>">Email Sales</a></div>
<?php endif; ?>