Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, Power Apps, Power Automate, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
To create a Task the request looks like this:
"subject" : "SomeSubject",
"description" : "SomeDescription",
"email@example.com" : "/contacts(0000etc)"
Then POST it to /api/data/v8.1/tasks
However, creating a Post isn't so easy, as there is no direct relationship to a contact or account. We've got a postregardingid, but you can't create postregardings. https://msdn.microsoft.com/en-us/library/mt607553.aspx
Has anyone been able to create Posts with the Web API?
Try to use CRMRestBuilder - it supports combination of WebApi and Create request - crmrestbuilder.codeplex.com
Thanks for that Andrii. That's a very cool tool!
Unfortunately creating an entity against /posts results in an HTTP 500 Internal Server Error. Setting all the values (text, source, and type) or only a value for "text" causes this.
The tool fails to generate any code if I set the "RegardingObjectId", which is what I really need. It doesn't show the additional dropdown to select the regarding entity.
Unfortunately the tool also fails for Tasks too. It tries to populate RegardingObjectId instead of regardingobjectid_contact_task. "The property 'regardingobjectid' does not exist on type 'Microsoft.Dynamics.CRM.task'"
Looks like you found a bug in this tool.
That's weird. I tried different combinations and nothing worked properly. If you want to resolve your issue quickly you have 2 ways:
1. Make it using SOAP call instead of REST. Here is good article about usage of SoapLogger from SDK package - www.powerobjects.com/.../microsoft-dynamics-crm-soap-logger-a-tool-that-can-greatly-simplify-writing-http-requests
2. Create an Action that will retrieve input parameters and create a Post in a way similar to following - blogs.msdn.microsoft.com/.../how-to-create-a-post-with-mentions-using-workflow
Excellent suggestions Andrii. Thank you.
I've been advised by MS to move off SOAP (I have a completely working SDK solution). There are intermittent connection problems with the SOAP discovery service to Canada. Web API connects consistently however.
SOAP with the SDK is roughly this in case anyone is interested:
var result = Client.getOrganizationService().Create(new Post
Text = post.text,
RegardingObjectId = new EntityReference(
A custom action may be the only solution if this is an legitimate omission. I will pursue with support and update here.
I don't think this is a bug with the tool. Rather I can't seem to create a Post with Web API at all.
POST to /api/data/v8.1/posts
"text": "Test Single Post",
(source 1 is an auto post, type 7 is a status post)
"message":"An unexpected error occurred.",
"message":"An unexpected error occurred..."
did you get solution for this? please let me know
I'm having the same problem, also can't create a new relationship 1:N between my entity and Posts
"text": "Sample Text",
Business Applications communities