Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Can I add data in CalendarRulesType attribute using c# in Dynamics CRM

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

Can I add data in CalendarRulesType attribute using c#?if yes then Can anybody give an example or ref link for how to add data or create a record with CalenderRules type attribute using c# in dynamics crm.

I got the Information about CalenderRules type attribute in below link.but can't find actually how to add.

https://msdn.microsoft.com/en-in/library/dn817862.aspx#BKMK_Image


Help me if you know.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can I add data in CalendarRulesType attribute using c# in Dynamics CRM

    Hi,Yes I handled PartyList and Customer.As you say it is fine to ignore calenderrule i will go with it.

    Thanks a lot for your help and time.

  • Verified answer
    Aiden Kaskela Profile Picture
    Aiden Kaskela 19,694 on at
    RE: Can I add data in CalendarRulesType attribute using c# in Dynamics CRM

    Things like ParytList and Customer and Key need to be dealt with, but I think you can safely ignore this one.

  • Suggested answer
    Aiden Kaskela Profile Picture
    Aiden Kaskela 19,694 on at
    RE: Can I add data in CalendarRulesType attribute using c# in Dynamics CRM

    Hi,

    It sounds like you're building an adapter or wrapper for creating/updating records in CRM using C#? If that's the case, you don't need to worry about the calendar rule type because there aren't any attributes of that metadata type that can be written.

    Aiden

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can I add data in CalendarRulesType attribute using c# in Dynamics CRM

    Hi I just want to handle all datatype in c# code .So that any request for adding data with any datatype and in any entity I can handle that.Thats why I look also for complicated datatypes also.

  • Aiden Kaskela Profile Picture
    Aiden Kaskela 19,694 on at
    RE: Can I add data in CalendarRulesType attribute using c# in Dynamics CRM

    Hi,

    I don't quite follow. What specifically are you trying to achieve?

    Thanks,

     Aiden

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can I add data in CalendarRulesType attribute using c# in Dynamics CRM

    Actually I called below function from javascript :

    SDK.Metadata.RetrieveEntity(SDK.Metadata.EntityFilters.Attributes,

                   module,

                   null,

                   false,

                   function (entityMetadata) { successRetrieveEntity(module, entityMetadata); },

                   errorRetrieveEntity);

    And as output I got many attribute types define in below link.

    msdn.microsoft.com/.../gg328507(v=crm.6).aspx

    So I want to handle all posibilities for add record using c# for all attribute type.

  • Suggested answer
    Aiden Kaskela Profile Picture
    Aiden Kaskela 19,694 on at
    RE: Can I add data in CalendarRulesType attribute using c# in Dynamics CRM

    Hi,

    So, CalendarRule and CalendarRuleType are two different things. Here's an overview of the calendar entities: msdn.microsoft.com/.../gg328538.aspx and msdn.microsoft.com/.../gg309491.aspx

    CalendarRule records are the events on a calendar, where CalendarRuleType is used in early binding to generate a code property so you can see the rules for a given calendar.

    Are you trying to add items to the service calendar programatically?

    Thanks,

     Aiden

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can I add data in CalendarRulesType attribute using c# in Dynamics CRM

    Hello Aiden Thanx for reply.But I found two more links related calender rule.

    1)Display that there is attrubutetype  CalendarRules :

    msdn.microsoft.com/.../gg328507(v=crm.6).aspx

    2)And below one for creating some records related calender:

    http://www.inogic.com/blog/2015/11/creating-calendar-rules-with-breaks-in-microsoft-dynamics-crm-2015/

    Can you please help me to come out from confusion?

  • Suggested answer
    Aiden Kaskela Profile Picture
    Aiden Kaskela 19,694 on at
    RE: Can I add data in CalendarRulesType attribute using c# in Dynamics CRM

    Hi,

    There are no attributes that actually use CalendarRulesType, and it isn't a type of attribute you can add to CRM so there's not much you can do with it. As the link says, it's used if you follow early binding in code but that's it.

    Hope this helps! I'd appreciate if you'd mark this as Answering your question.

    Thanks,

     Aiden

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.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans