Dear Ankit Sharma,
Good day!! I hope you are doing well~
As per the description shared, I understand your concern but since it's related to Power Apps, I would like to request you post your concern in the related community i.e., Power Apps - Power Platform Community to get the detailed help from the experts to achieve your requirement.
Please accept our sincere apologies for redirecting you to different community as the members in the category posted focus on the users with the out of the box concerns in Microsoft 365 and have limited knowledge on Power Apps, so to get the fast and better assistance, we have redirected you in the correct path.
Appreciate your patience and understanding. Have a great day!!
Best Regards,
Sophia