Let me explain my scenario at first.
I have two content types in my site.
First is products and second is producer.
Each product has only one producer and each producer has one or more products.
Now in every product page, I want to show the producer information. I made a view block for this issue and it works well.
but in the product page, I also have a plan to show all products of the producer of current product in another block.
In order to show the product nodes of a specific producer I need the node ID of producer content type.
I tried to use Contextual filters --- Provide default value "When the filter value is NOT available" via Content ID from URL but this function returns node ID of current product not producer id. (because we are in a specific page of single product)
Now I am searching to find a solution for this issue.
thanks a lot for your guidance.