How to Remove {} from GUID Javascript
Get the Id of the Record on a Page in Dynamics 365 Power apps
Xrm.Page.data.entity.getId()
If you use Xrm.Page.data.entity.getId() to get the record id you will receive the GUID with {} brackets you need to remove the {}, then you will use this GUID any where,
Here is the steps:
And to remove the curly braces:
Xrm.Page.data.entity.getId().replace(“{“, “”).replace(“}”, “”);
Or
formContext.data.entity.getId().replace(“{“, “”).replace(“}”, “”);

