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.
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.
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.
Hello Khan,
Please test the code I provided, I think it should work without the guid.
Regards,
My question is what error will come if I am not using guide declaration.
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!
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,558 Super User 2024 Season 2
Martin Dráb 228,645 Most Valuable Professional
nmaenpaa 101,148