Notifications
Announcements
No record found.
I want to know that If my code is
Entity account=new Entity("account");
Guid gid=account.id;
what happen if I am not used guid .what the 2 line meanining and why it is decalare when we define entity.
Hello Khan,
This is because the system "helps" developers to write less code, for example:
Entity newAccount = new Entity("account");
newAccount["name"] = "TEST";
service.Create(newAccount);
this should work.
Regards!
My question is what error will come if I am not using guide declaration.
Please test the code I provided, I think it should work without the guid.
Regards,
Hi,
If you are not using a guid in the declaration, you will receive an error on compile time, that you cannot convert the type "System.Guid" to the type that you will use.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 72 Super User 2025 Season 2
Daniyal Khaleel 32 Most Valuable Professional
Gerardo RenterÃa Ga... 29 Most Valuable Professional