Bhubaneswar, Odisha, India
+91-8328865778
support@softchief.com

Create Outlook Filters using C# in Dynamics 365 CRM

Create Outlook Filters using C# in Dynamics 365 CRM

Microsoft Dynamics 365 uses online synchronization filters to determine which records to synchronize between Dynamics 365 and Microsoft Outlook (using Microsoft Dynamics 365 for Outlook), or Exchange (using server-side synchronization). You can modify the existing online synchronization filters or create new filters to synchronize certain types of records. You can also delete, deactivate, or activate filters. You use the same set of filters (accessed through Dynamics 365 for Outlook) whether you’re synchronizing through Dynamics 365 for Outlook or server-side synchronization.

String contactName = String.Format(“offlineFilteredContact {0}”, DateTime.Now.ToLongTimeString());
String fetchXml =
String.Format(“<fetch version=\”1.0\” output-format=\”xml-platform\” mapping=\”logical\”><entity name=\”contact\”><attribute name=\”contactid\” /><filter type=\”and\”>” +
“<condition attribute=\”ownerid\” operator=\”eq-userid\” /><condition attribute=\”description\” operator=\”eq\” value=\”{0}\” />” +
“<condition attribute=\”statecode\” operator=\”eq\” value=\”0\” /></filter></entity></fetch>”, contactName);
SavedQuery filter = new SavedQuery();
filter.FetchXml = fetchXml;
filter.IsQuickFindQuery = false;
filter.QueryType = SavedQueryQueryType.OfflineFilters;
filter.ReturnedTypeCode = Contact.EntityLogicalName;
filter.Name = “ReadOnlyFilter_” + contactName;
filter.Description = “Sample offline filter for Contact entity”;
_offlineFilter = _serviceProxy.Create(filter);

For more info Read here.

You can enroll now !We are giving 30% discount on our Internship Program

Don’t miss the chance to participate in the upcoming Internship Program which will be done using Microsoft Dot Net Web Development Full Stack Technology. The new batch will be starting from May 20, 2024.  We will have most experienced trainers for you to successfully complete the internship with live project experience.

Why to choose Our Internship Program?

Industry-Relevant Projects
Tailored Assignments: We offer projects that align with your academic background and career aspirations.
Real-World Challenges: Tackle industry-specific problems and contribute to meaningful projects that make a difference.

Professional Mentorship
Guidance from Experts: Benefit from one-on-one mentorship from seasoned professionals in your field.
Career Development Workshops: Participate in workshops that focus on resume building, interview skills, and career planning.

Networking Opportunities
Connect with Industry Leaders: Build relationships with professionals and expand your professional network.
Peer Interaction: Collaborate with fellow interns and exchange ideas, fostering a supportive and collaborative environment.

Skill Enhancement
Hands-On Experience: Gain practical skills and learn new technologies through project-based learning.
Soft Skills Development: Enhance communication, teamwork, and problem-solving skills essential for career success.

Free Demo Class Available