I am new to MS CRM 2015. I am trying to get guid using the telephone1 but I have not found any web api as we have in 2016. In MS CRM 2016 I am using the following APi to get the contact id
http://CRMURL/api/data/v8.0/contacts?$select=telephone1&$filter=telephone1%20eq%20%279091%27
It is working with 2016 but same api is not working with MS 2015. Anyone of you please help me to identify the equivalent api in 2015 to get contact id. I am using on-premises CRM.
Dynamics CRM web api introduced in Spring release of 2015, aka update 1.
You have to use OData endpoint to query in your case.
[Your Organization Root URL]/XRMServices/2011/OrganizationData.svc/ContactSet?$select=telephone1&$filter=telephone1 eq <value>
You can download CRM Rest builder & use within CRM.
Related
I founded a lot of libs on GitHub which help to get token.
For example - https://github.com/AleksandrRogov/DynamicsWebApi
But I have no 'authorityUrl' because not using Azure. How I can get token without Azure?
AFAIK, Azure Active Directory (ADAL) is prerequisite to use CRM Web API.
Similar discussion happened in CRM community also.
How do I create an Option Set Item in an already existing Option Set List with the Dynamics CRM 2016 web api ?
I believe you are looking for the InsertOptionValueRequest message, and its corresponding InsertOptionValue WebAPI action. See Request and Action MSDN pages for details.
Is it possible to get a user object from Dynamics CRM Online 2016 Web API by the users ObjectID from AzureAD.
I am able to get a user by its windowsliveid (as in example below) but cannot find the GUID for the user that is shared between Azure AD and CRM Online.
/api/data/v8.1/systemusers?$filter=windowsliveid eq 'user.name#contoso.com'
Maybe this isn't even possible?
You are looking for azureactivedirectoryobjectid attribute of systemuser entity. MSDN Reference
The below code should work.
/api/data/v8.1/systemusers?$filter=azureactivedirectoryobjectid eq guid
Note: guid without single quotes
I am getting this error
Unable to authenticate LiveId.
http://prntscr.com/cx116z
I would suggest to get in touch with developers of that application. It looks like you use Office 365 authentication and that application tries to authenticate using provided credentials using LiveId that is not used as authentication provider for years.
Not sure what plugin you are using, but our plugin fully supports Office 365 Authentication and works fully with CRM On-Premises and CRM Online versions 2011 or later: https://www.saintsystems.com/products/gravity-forms-dynamics-crm-add-on/
Let me know if I can help in any way.
In Dynamics 2011 installation i have an Attribute with "Secured" option enabled. And I develope a software, where I use only assemblies from crm 4.0.
With CRM 4.0 assemblies I can retrieve permissions (for particular user), but not prohibitions (i achieve this just quering following dynamic entities: fieldpermission, fieldsecurityprofile). The fact, whether the field is secure i can only read from Metadata and i need crm 2011 assemblies for it (in CRM 4.0 AttributeMetadata class has no property "isSecured").
My Question is: how can i retrive, if the Attribute has field "isSecured" enabled, not using Metadata from CRM 2011, only using CRM 4.0 assemblies ? Maybe i schould query something? Or use SQL (i can use only webservices, i have no direct access to dynamics database)?
Why can you not use the 2011 assemblies?
If you are forced to stick with CRM 4 assemblies, then I would do a fiddler trace of what the 2011 assemblies do and then execute a similar SOAP XML request.