Notifications
Announcements
No record found.
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
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
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?
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?
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.
So I want to handle all posibilities for add record using c# for all attribute type.
I don't quite follow. What specifically are you trying to achieve?
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.
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.
Things like ParytList and Customer and Key need to be dealt with, but I think you can safely ignore this one.
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.
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