Dear UZSPACE
Thanks so much still I am not able to achieve it, I did the following to understand the concept with only Vendor and Customer "later I will add the rest"
case "Source Type" of "Source Type"::Customer: IF Customer.READPERMISSION…
Thanks so much, but where I shall put this code, do I require to add in a Codeunit ?