Convert BlogID and PostID to a Link

I have a blog id and a post id. Is there a function that will accept those and give me a permalink.?

It seems the_permalink is for the current blog. What I need is a global permalink function. Can someone share on pleeease. :slight_smile: