Orchard Collaboration tables joins - orchardcms

I'm new to Orchard CMS and collaboration,I want to know How Orchard Collaboration tables are mapping with each other(i.e joins) like how customer & Project module is linked each other.

The data model of the Orchard is based on ContentItems and ContentParts. Each ContentItem contains several ContentParts. Each ContentPart ( in case it derived from ContentPart not from ContentPart), has its own table in database. ContentParts of a ContentItem have the same primary key value.
Now backing to your question:
Customer is a User with special privilege. Its ContentType is User.
Project is also a ContentItem. Its ContentType is ProjectItem.
Project Type contains a ContentPart called ContentItemPermissionPart. ContentItemPermissionPart specifies which Users and Business-Units have which AccessType to the ContentItem. The associated database tables related to this are ContentItemPermissionPartRecord (master) and ContentItemPermissionDetailRecord (detail).
You can find more information about Orchard data model Here.
You can find more information about Orchard Collaboration data model here.

Related

Orchard CMS Database Part vs PartRecord

In Orchard database, there is tables name ending with 'Record' and other with 'PartRecord'.
What is the logic behind that?
The tables for a part record should end in "PartRecord". If a table ends in "Record" without "Part" in front, it shouldn't map to a part record. For example, "ContentItemRecord" is a record, but not a part record. ContentItem is not a part.
Content part records are record classes that store content part data in the database.
While its not mandatory to have a part and a part record, it is a good practice to split the real data model (the record) from the model you are going to manipulate and/or read (the part).
The naming of the tables are all up to the module developers, but usually they are postfixed with PartRecord.
Looking at my Orchard database, I do not see any tables ending with Part. My guess is that with your application they are custom modules or third party modules, where the developer chose to postfix it with just Part.

cakedc user plugin user_details

I am using CakeDC user plugin with cakephp 2.5. I see that it includes a user_details table. I want this use this table to store the full name of the user among other details.
I have added a new entry into the user_details table with the correct user_id but the table does not get pulled with userData in the view.
On investigating the user model I do not see any association with the user_details such belongsTo. There is actually no user_details model.
There is no mention anywhere what to do here. Do I create a model for the user_details table and create the associations?
This table is a key-value store and is not used by the plugin any more but kept for legacy apps.
You'll have to add the assocs by extending the plugin or add your own profiles table which I would recommend to use instead of a key-value store, which is actually as well the reason why it was dropped from the plugin.

Relationship and Mapping in CRM 2011

I am really new to MS Dynamics CRM .. and am stuck with understanding the Relationship and Mapping section.
I want to map the "city" field from Account entity to a "city" field in my custom entity "Custom".
For that I navigate to Account entity settings and create a 1:N relationship with related entity as "Custom" and then map the two fields.
Just like how all related data from "Lead" entity gets transferred to "Opportunities" after "Qualify", I want my custom "city" field to be filled with "city" from "Account" after i create a new account record.
This has something to do with workflows right?
Please correct me if I am wrong anywhere.
It sounds like you want to create a N:1 relationship on your Custom entity which points to the Account entity. If you are not looking for a lookup field, or if the entities are otherwise already related, then the “Mappings” feature of the relationship may be worth looking into. Keep in mind that this type of mapping only works when you are creating the “child” record from the “parent” record (with the parent form open). If you create the record “stand-alone” it won’t auto create the mapping. You can use workflows, however they run asynchronously and you may not see the result right away (which can confuse end users). Aside from that your options are JavaScript (not 100% reliable) or a custom code a Plugin.

MS Dynamics : Entity Name List and there fields list

I am working on the msdynamics connector in C#.net.In the connector i want to retreive the list of entity object name i.e lead,contacts etc.Also i want to retreive there respective fields list.I am working on Vs2010 and used Passport login.
I believe you are looking for the RetrieveAllEntitiesRequest, which returns the metadata for all entities (logical names, attributes, etc).

Is it possible to create a custom Lookup of type Customer in CRM 2011

I have one custom entity in CRM 2011. My requirement is to create a lookup field(say Customer) for this entity like Out of the Box Customer in Case entity which is pointing to both Account and Contact records. How can I create this custom Customer field?
Sadly this is not possible. For custom lookups you have to decide which entity is the target.
In your case, you would have to define two lookups (one for each type). This is by the way the same behavior which is used by the customer lookup. They are only hidden from your eyes.
If you want to see this feature in future versions, you could support these requests on connect:
Custom Composite Lookups (multi-relationship in 1 lookup)
Give me the ability to create a lookup on the 'Customer' entity
Expand the 'Customer' entity to other entities

Resources