def METHOD_NAME(link: str, sf: Any) -> str:
    re_id = re.compile("/[A-Za-z0-9]{18}")
    re_id_res = re_id.search(link)
    if re_id_res is None:
        return "Invalid salesforce link"
    id = re_id_res.group().strip("/")
    for object_type in object_types.values():
        res = sf.query(link_query.format(object_type["fields"], object_type["table"], id))
        if res["totalSize"] == 1:
            return format_result(res)
    return "No object found. Make sure it is of the supported types. Type `help` for more info."