can anyone give me an Example of fetch Condition that i can used for the Document Core Pack fetchxml
i use the DCP for a dynamics crm Template.
You can use advanced find and export Fetch xml and use that.
Related
We want extract all the Component templates and Linked schema details. Could any one please let me know script to extract these details from Tridion 2011 database.
Thanks
I would suggest posting this at https://tridion.stackexchange.com/
The easiest way to extract data from SDL Tridion is to use the content Porter. You could export all of the Components and their dependencies as a package. Butr without more information on what you want to do with the data it is hard to know if this would meet your requirements.
IN the old PowerTools there was a tool which gave an overview of what you wanted, but I don't know if it worked with 2011 (I guess not). You may be able to adapt one of the old script from there if you are in a rush. Otherwise I suggest using the Core Service API to just get all of the CTs for a publication, and create a report on their data yourself.
I'm creating a solution which will be released as a managed solution for Dynamics CRM Online.
However, the customer will need to put information in when installing the managed solution to allow interaction with outside services.
For example, when you install the LinkedIn solution, you need to add your log in information to allow the CRM to access your LinkedIn account.
How do I add these parameters to the a solution, and then allow the customer to update them if they change?
Cheers
Edit:
To add to my query and following the answer below.
To make sure the process is correct in my head.
Option 1.
I will create a custom entity for storing key/value, or username/password combination.
I would then create a customisation page for the solution using html web resource, which when submitted, javascript would create a single record to hold those values.
I then need to link every record that needs the values stored in the custom record - I'm not sure how this would be done without editing a workflow after the storage record has been created, to link each normal record to the storage one.
Option 2.
Create an xml web resource that stores the values. Create the html/javascript resources to update this using the configuration page.
I can then use a javascript function to obtain that data when the custom entity is created, perhaps to populate hidden fields for storage and use behind the scenes.
I can't find any tutorials on getting started with using xml in this way - can you point me in the right direction?
I typically create a "Configuration" entity that has Name/Value attributes. This is also useful when you have Dev/Test/Prod environments that require different configs (e.g. URLs, credentials, etc).
Another approach is to using Plug-in configurations or Web Resources to store that type of information. The Plug-in configuration is pretty straightforward if you can have the customer use the Plug-in Registration tool to modify the value.
In MSCRM I'd like to automate sharing documents out to users. I tried using SQL Server Profiler to trace but I can't find the raw sql. Anyone know how to do this? Thanks!
How you do this depends largely on where you're storing the documents (on a file server, within CRM, on SharePoint etc) and also how you want to "share" the document (email a link to a file server location, email an attached document, provide access to doc via CRM UI).
If Sharepoint is part of the equation there's various add-ons / webparts available that integrate document management with CRM. If your document is within CRM you could look at creating a workflow that either emailed a link, or provided access rights within CRM or something similar. You approach would also depend on if you're sharing with CRM users, CRM contacts, or some other type of user.
If you've built a custom form or application then you should be using the API as driis mentions. Whatever the scenario there shouldn't be a need to find the "raw" sql to achieve this.
At the bottom of the definitions of "Filtered***" view there is a bit of sql like
select POA.ObjectId from PrincipalObjectAccess POA
join SystemUserPrincipals sup on POA.PrincipalId = sup.PrincipalId
where sup.SystemUserId = u.SystemUserId and
POA.ObjectTypeCode = 10039 AND
((POA.AccessRightsMask | POA.InheritedAccessRightsMask) & 1)=1
Adding new rows to PrincipalObjectAccess should do the trick. However, it's a hack, it requires administrative privileges and is highly unrecommended on general principles...
I have 2 entities in CRM, many-1 relationship.
Entity A, Entity B -- 1-many
How can I write FetchXML to get all records that are not in entity B
Thanks,
I don't really understand what query you want. Can you rephrase?
If you can create the query in Advanced Find, you can extract the FetchXML out of it. See Using the Advanced Find for FetchXML builder.
Another great way to write FetchXML is by using Stunnware Tools for Microsoft Dynamics CRM 4.0 - Overview. The free Community edition has an awesome FetchXML builder that can construct queries even slightly more complicated than Advanced Find. When you extract the tools, you might have to enable the FetchXML builder in the options. The FetchXML builder interface took me a while to get used to because you access most functionality via right-clicking.
For a requirement i was asked to export information into a custom entity that was created in MS CRM 4.0. I am trying to do this programmatically and I have not found a single code that actually accomplishes this. I wrote code to check if a certain value for a field exists in the entity but creating a new entity seems to be a little bit of puzzle for me. Any help on this would be appreciated.
To create a custom entity from code, you need to use the MetadataService web service. The 'CreateEntity' method is used to create custom entities.
The CRM SDK for v4.0 shows you how:
CreateEntity Message (MetadataService)
This is my experience when I had a similar requirement in MS CRM 3.0. I started using the CRM sdk to import data but found it was not easy.
Then I ended up using Scribe adapter for CRM. It is not free but will easily solve your problem for importing to custom entities. Will post some links on that. need to go through some old bookmarks.
Not sure if this feature exist out of the box for CRM 4.0.
One product i have been using is DataSync from Simego (It has a plugin that supports MS CRM 4.0) http://www.simego.net/products/Data-Synchronisation-Studio
Thanks for the link. I was familiar with the Scribe Adapater. Catch is client wanted this import wizard inside MS CRM 4.0. In anycase i found the answer to my solution here. Thanks for you reply :).
Whats wrong with using the import from CSV function within MSCRM 4.0? It caters for custom entities (3.0 didn't) and allows good mapping functions and saving of the mappings?