Hi All,
I was trying to add the standard email entity into my solution, however when I select existing entity and filter email, there is no Email entity listed. Is that limitation?
Thanks.
Regards,
Teh
Hi All,
I was trying to add the standard email entity into my solution, however when I select existing entity and filter email, there is no Email entity listed. Is that limitation?
Thanks.
Regards,
Teh
Hi Clofly,
Thanks, will try it out later.
Hi Teh,
Before raising a ticket,
you could run SDK to try to add email entity to your solution manually to test whether it could work.
using Microsoft.Crm.Sdk.Messages; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Client; using Microsoft.Xrm.Sdk.Messages; using Microsoft.Xrm.Sdk.Metadata; using Microsoft.Xrm.Sdk.Query; using System; using System.Diagnostics; using System.Net; using System.ServiceModel; using System.ServiceModel.Description; using System.Text; using System.Text.RegularExpressions; using System.Collections.Generic; using System.IO; namespace ConnectionForD365 { class Program { static void Main(string[] args) { connectToCRMByOrg(); } public static void connectToCRMByOrg() { IOrganizationService organizationService = null; try { String username = ""; String password = ""; String organizationUrl = ""; ClientCredentials clientCredentials = new ClientCredentials(); clientCredentials.UserName.UserName = username; clientCredentials.UserName.Password = password; // For Dynamics 365 Customer Engagement V9.X, set Security Protocol as TLS12 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; // Get the URL from CRM, Navigate to Settings -> Customizations -> Developer Resources // Copy and Paste Organization Service Endpoint Address URL Console.WriteLine("Please waiting for connection..."); organizationService = (IOrganizationService)new OrganizationServiceProxy(new Uri(organizationUrl), null, clientCredentials, null); if (organizationService != null) { Guid userid = ((WhoAmIResponse)organizationService.Execute(new WhoAmIRequest())).UserId; if (userid != Guid.Empty) { Console.WriteLine("Connection Established Successfully..."); OrganizationServiceProxy _serviceProxy = (OrganizationServiceProxy)organizationService; _serviceProxy.EnableProxyTypes(); RetrieveEntityRequest addEntity = new RetrieveEntityRequest() { LogicalName = "email" }; RetrieveEntityResponse retrieveAddEntityResponse = (RetrieveEntityResponse)_serviceProxy.Execute(addEntity); AddSolutionComponentRequest addReq = new AddSolutionComponentRequest() { ComponentType = 1, ComponentId = (Guid)retrieveAddEntityResponse.EntityMetadata.MetadataId, // replace it with your solution name SolutionUniqueName = "testsolution" }; _serviceProxy.Execute(addReq); Console.WriteLine("OK"); } } else { Console.WriteLine("Failed to Established Connection!!!"); } } catch (Exception ex) { Console.WriteLine("Exception caught - " ex.Message); } } } }
Just create a new console app and import necessary Dynamics 365 SDK libraries,
then copy full code to run.(replace SolutionUniqueName parameter value with your owns)
Result:
I added Email entity into my "testsolution" with above code.
Please follow this tutorial for how to connect to your D365:
If even code not works, then raise a tk for assistance.
Regards,
Clofly
Hi Teh,
Thanks for the details. We would need more details to investigate this further.
Please open a support ticket for investigation.
Thanks,
Mustafa
Hi Mustafa,
There is result return by using the url you given. The email entity is in the list of entities in powerapps, but when I try to add into my solution I can't find it.
Thanks.
Regards,
Teh
Hi Clofly,
Yes, I can send email successfully from there.
Thanks.
Regards,
Teh
Hello,
The email entity should be present in the org. Could you please try to run this Odata query to verify the same.
https://<Orgurl>/api/data/v9.1//EntityDefinitions(95ae88b3-cc0c-45ac-a2db-655dceec238b)
If you don't get any results, you may have to open a support ticket with Microsoft for further investigation.
Thank you.
Mustafa Sabir
Support Engineer- Dynamics 365 CE
Hi Teh,
Sorry for not so clear description, my "sales app" could stands for your "Sales hub".
1. If you can see Sales hub, there is a small label "WEB" at bottom of app block.
2. check whether contact records could match to records in marketing application
3. open the app and click the Activities to check whether you can see Email button
4. try to send an email to test whether email module works.
Regards,
Clofly
Hi Clofly,
Yes, my user ID is system administrator. Seem like I cannot find email entity in classic view as well....
Our company D365 is full application, I dont see the Sales app itself, but I saw Sales hub.
Regards,
Teh
Hi Teh,
* Is your current user system administrator?
* Can you find Email entity in classical UI?
* In your instance which has marketing application, does sales application also exist?
Regards,
Clofly
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... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156