Hi @abhi_red ,
As another alternative, you can achieve this using WebAPI on Portal/Power Pages and Liquid Templates,
Initially you have retrieved entries based on respective Company for today in advanced find within dynamics 365 CRM.
For Retrieving the Entries, you can use Liquid or WebAPI.
Download the fetchXml and use Liquid code to Retrieve the entry,
You can store the Entry count in HTML container (<span> {{Entries Count}} </span>),
Now you can create a duplicate button for submit which will click submit button of Form if the conditions are matched,
On Click of Duplicate Button, we have to check that the Created span count have values,
If the count is 1 then we can alert a popup with your Message to the user,
Else click the Submit button of form,
For WebAPI, You can refer to the blog given Below,
https://www.inogic.com/blog/2021/03/execute-different-web-api-operations-using-powerapps-portals-preview/
Please check and let me know if required any detailed steps to achieve the same.
Thanks!
Inogic Professional Services Division
Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!
Drop an email at crm@inogic.com
Services: http://www.inogic.com/services/
Power Platform/Dynamics 365 CRM Tips and Tricks: http://www.inogic.com/blog/