I'm trying to filter a document library for the logged user.
I've a column person type and i tryed to use [Me] in the filter but without result.
If i look inside [Me] i've #%<~
Do you have a solution to do this?
Thanks
Related
In my visual studio (TFS), when I try to write a TFS query I am able to see a list of all possible fields(eg. Team, Work Item Type etc.) and in values, I am able to see a list of all possible values for that field.
Is there any way I can get a list of all such fields and values?
Eg. I want to get a list of all Work Item Type I have in my TFS, or I want to get a list of all Applications in my TFS.
I have tried going through TFS rest APIs, I could only find a way to get work items or iterations or area path.
I am looking for REST API.
REST API still doesn't support get allowedvalues in a field.
Currently, we can only use old .net API to get allowedvalues by getting an instance of class FieldDefinition and referencing the AllowedValues property.
You can get list of fields via this API:
http://{tfs_url/project}/_apis/wit/fields?api-version=4.1
I am new to CRM and flow and in building a flow using MS flow, I need to get a record from Dynamics CRM equivalent to below SQL query -
select * from contacts where emailId = '<email id>'
Can you please help me to understand that how can I achieve this. I tried using List records feature but it threw an error that OData query is not correct. Image of flow is attached.
Well, it's working, I just had to put the parameter supplied in the single quote like -
emailaddress1 eq '<Customer email>'
If I understand correctly, the issue you are facing is with Filter query, Flow is not throwing an Error.
I tried to replicate the Flow on my Instance/org.
The issue is see is your filter filed "emailadress" should be selected from CRM i.e from system.
It is not mapped from CRM rather you wrote it per hand.
Click on Filter query it will open the dialog from where you could map the
fields. Screenshot below will help you understand more.
I would like to query Cases on my on-premises DynamicsCRM using a URL querystring.
Something like this:
https://mysvr/foo.aspx?entity=case&query=somecasenumber
I would like to query the field 'Case Number', please notice that it is only an example, anything that can fulfill this need is welcome (since it uses a url to make the query).
I took a look at this link with no luck: https://msdn.microsoft.com/en-us/library/gg328483.aspx
It seems something very straight forward to have but I canĀ“t find any info on this.
Thanks in advance
Nothing like what you're looking for really exists out of the box. What you linked to kind of works if you can go directly to a view that is already filtered to what you want. Otherwise the closest thing would probably be the OData endpoint. For 2013 it would look something like the following HTTP GET:
https://<CRM SERVER URL>/xrmservices/2011/organizationdata.svc/IncidentSet?$filter=TicketNumber%20eq%20%27CAS-00033-Z3K2P7%27
You could paste that into your browser, but the result will be something like the following (depending on the browser) and not the CRM UI
You can open a record via the GUID
https://<CRM URL>/main.aspx?etn=incident&id={<Case GUID>}&newWindow=true&pagetype=entityrecord
Using Matt's answer above can fetch the GUID. (See below code with snipped from the OData endpoint
<id>https://<CRM URL>/XRMServices/2011/OrganizationData.svc/IncidentSet(guid'<Your entities GUID is here>')</id>
Once you have the GUID, the URL will take the user directly into the record.
It's a few more steps than I'd personally like, but using some fancy JavaScript, you can perform the lookup, fetch the GUID and create the URL.
An amazing resource for playing with CRM is the open source Chrome plugin LevelUp for Dynamics CRM. The source code there will give you a start into
https://github.com/rajyraman/Levelup-for-Dynamics-CRM
I am not the cleanest JavaScript coder, so I will not scar your eyes with my "unique style" however I hope I have given you a good starting point.
Using Linq I have built a query which I return to a gridview.
This works fine but I want to populate a formview with the same data,
can anyone point me to a decent how-to article please?
thanks
Try to assign your query result to a DataSource property, then try to execute DataBind() method.. it should work.. if not, please provide us some code...
Regards..
How would you suggest working with files that is stored on the note of a entity in Crm. Could you write a generic method that will enable you to access any type of file? Or would it be better to have a method for dealing with each type of file?
For example, we are going to be saving a mix of swf files and xml files on the entity, so would it make sense to have a method each for example:
GetXmlFilesOnAccount(accountid)
GetSwfFilesOnAccount(accountid)
When you upload an attachment to CRM the mimetype is also saved as part of the record information.
The following link contains a nice example of how to download the attachemt using a single method. http://crmscape.blogspot.com/2009/10/ms-crm-40-sending-attachments-to.html
The post is missing the actual query needed to retrieve the annotations but you can tell what columns are required from the method signature.
My suggestion using your methods:
* GetXmlFilesOnAccount(accountid)
* GetSwfFilesOnAccount(accountid)
Retrieve account activitypointers by regardingobjectid(in your case accountid guid)
Loop through returned activitypointers
Get attachments for each activitypointer (activitypointer.activityid = activitymimeattachment.activityid)
Store attachments (disk, etc)
You don't even need two methods. You can retrieve all attachment file types for a given note (annotation) with a single method.
Hope this helps.
I recently started an Open Source Project on CodePlex to accomplish exactly that. Feel free to check out the Project's Web Page at:
http://crmattachdownload.codeplex.com/
You can also view the source code under the "Source Code" tab of that same page.
Pete