web
You’re offline. This is a read only version of the page.
close
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

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

I have the same question (0)
  • Suggested answer
    Aiden Kaskela Profile Picture
    19,696 on at

    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

  • Community Member Profile Picture
    on at

    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
    19,696 on at

    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
    on at

    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.

  • Aiden Kaskela Profile Picture
    19,696 on at

    Hi,

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

    Thanks,

     Aiden

  • Community Member Profile Picture
    on at

    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.

  • Suggested answer
    Aiden Kaskela Profile Picture
    19,696 on at

    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

  • Verified answer
    Aiden Kaskela Profile Picture
    19,696 on at

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

  • Community Member Profile Picture
    on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans