How to Remove curly braces from GUID D365 CRM

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(“}”, “”);

How to Remove curly braces from GUID D365 CRM

https://www.youtube.com/@powerappsninja

Leave a Comment

Your email address will not be published. Required fields are marked *