Getting Term_id – Taxonomy Metadata plugin

Alright, I have found a way. If it can be useful for someone here is how I solved it:

$terms = get_the_terms( $post->ID , 'custom_taxonomy' );
if($terms) {
foreach( $terms as $term ) {
    $term_id = $term->term_id;
}
}

Then you can use $term_id in your expression.

error code: 523