Notifications
Announcements
No record found.
i am not able to create custom field of date and time type on phone call activity
can anyone tell me the procedure to create the custom field on phone call activity
*This post is locked for comments
Hi Neha,
Hope this helps
Vlad
dynamicalabs.com
But while creating new custom field crm throws error
Neha,
Can you please post what error do you get and do you use online or onprem?
Can you paste the details of the error here?
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Data.SqlClient.SqlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #4951A76ADetail: <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts"> <ActivityId>82a73d2d-5c8f-4c9b-bc05-788b03cae98d</ActivityId> <ErrorCode>-2147220970</ErrorCode> <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" /> <Message>System.Data.SqlClient.SqlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #4951A76A</Message> <Timestamp>2017-09-27T12:23:41.7518182Z</Timestamp> <ExceptionRetriable>false</ExceptionRetriable> <ExceptionSource i:nil="true" /> <InnerFault i:nil="true" /> <OriginalException i:nil="true" /> <TraceText i:nil="true" /></OrganizationServiceFault>
I am using on-premise
Enable tracing - support.microsoft.com/.../how-to-enable-tracing-in-microsoft-dynamics-crm, restart IIS and repeat your scenario to get detailed information about error that appears. That information will appear in trace files.
Thanks Andrew
But my trace file is empty even though I enabled the tracing
Have you restarted IIS?
Probably you need to look at different folder for the logs - the moment u turn trace on there is huge amount of log generated.
Also, can you try creating attribute from code... something like this:
CreateAttributeRequest createCheckedDateRequest = new CreateAttributeRequest
{
EntityName = "phonecall",
Attribute = new DateTimeAttributeMetadata
SchemaName = "new_date",
RequiredLevel = new AttributeRequiredLevelManagedProperty(AttributeRequiredLevel.None),
Format = DateTimeFormat.DateOnly,
DisplayName = new Label("Date", 1033),
Description = new Label("The date ", 1033)
}
};
_serviceProxy.Execute(createCheckedDateRequest);
And see what error you are getting?
Thanks
Prateek
Hi Andrew,
Yes i did..
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.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2