Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Cannot delete bookable resource booking from sdk method. Throws and error " 'bookableresourcebooking With Id = **** Does Not Exist"

$
0
0
Cannot Delete the record which is existing inside dynamics

In result I'm able to fetch the record but still it throws record doesn't exisits

var fetchXml1 = @"<fetch mapping='logical'> <entity name='bookableresourcebooking'> <attribute name='bookableresourcebookingid' /> <attribute name='name' alias='bookableresourcebookingname'/> <filter type='and'> <condition attribute='bookableresourcebookingid' operator='eq' value='" + bookableResourceBooking + @"' /> </filter> </entity> </fetch>"; EntityCollection result2 = organizationProxy.RetrieveMultiple(new FetchExpression(fetchXml1)); DeleteRequest deleteRequest = new DeleteRequest { Target = new EntityReference(er.LogicalName, er.Id) }; var response2 = (UpsertResponse)organizationProxy.Execute(deleteRequest);

Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>