dynamics-crm-webapi

Retrieve all OptionSet values using OData in Dynamics CRM

梦想的初衷 提交于 2019-12-03 21:08:01
问题 I am quite new to Dynamics CRM. I am building an app which should update entity in Dynamics CRM. I can update simple types without any issues. Now the situation is, I have declared some custom Option Sets in Contact entity. Is there any way to retrieve all the possible OptionSet values (text and value) so that my app can look for appropriate value and set it in the payload it is generating? I can not find any endpoint in WebAPI as well as XRMServices/2011/OrganizationData.svc . Any help would

Creating Post with Dynamics CRM Web API

╄→尐↘猪︶ㄣ 提交于 2019-12-03 14:18:06
A Post entity ( https://msdn.microsoft.com/en-us/library/mt607553.aspx ) cannot be created using Dynamics CRM 2016 Online Web API. This payload should create a post on POST /api/data/v8.1/posts { "text": "Test Single Post", "source": 1, "type": 7 } (source 1 is an auto post, type 7 is a status post) But it returns: { "error": { "code":"", "message":"An unexpected error occurred.", "innererror" { "message":"An unexpected error occurred..." } } } Submitting the same payload with only "text" fails too. Notice that the Post entity does not have single-valued navigation properties ( https://msdn

How to have multiple entries for custom entity?

时光怂恿深爱的人放手 提交于 2019-12-02 11:37:27
问题 In our Dynamics CRM online custom project - we've the default ACTIVITIES tab in a custom entity named DocProject 's form ACTIVITIES is able to take multiple entries . Also, there is NOTES tab in the same form NOTES is also able to take multiple entries . Okey, this is done by Dynamics CRM guys. So far so good. In the same form, we also have a DocProjectActivities lookup field for a custom entity DocProjectActivities This is a lookup field, hence it has got a 1:N relationship. Clarification:

Bad request error while adding a lookup GUID field in CRM database using Web API

纵然是瞬间 提交于 2019-12-01 07:34:14
I want to insert a new record in CRM's custom entity where one of the fields is of lookup type i.e. new_contactid and it is dependent on the contact entity. I have also referred Set Values of all Data Types using Web API in Dynamics CRM Through C# . My JSON data is as below: { "new_transactionnumber":"114", "new_transactionamount":650, "new_transactiondate":"2018-01-29T15:01:00.000Z", "new_contactid_contact@odata.bind":"/contacts(afb9e006-6be5-e711-80ed-bef806786223)", "new_moveid_new_move@odata.bind":"/new_moves(896f2dcd-b2fa-e711-80ef-bef806786223)" } Here, last 2 fields are for lookup GUID.