Skip to content

Different Behaviours of IOrganizationService.Create Method Triggered Synchronously and Asynchronously

When I have to create a duplicate records with common attribute values, I usually just write a Create line of code in the loop without re-initialising the object.

 Entity testRecord = new Entity("new_testentity");  
testRecord["new_parentrecordid"] = new EntityReference("new_testparententity", parentEntityId);
for (int i = 0; i < itemCount; i++)
{
testRecord["new_serialno"] = i + 1;
...

Continue Reading noreply@blogger.com (Linn Zaw Win)’s Article on their blog

http://feedproxy.google.com/~r/LinnZawWin/~3/mLLuD5mDqD0/different-behaviours-of.html

Blog Syndicated with noreply@blogger.com (Linn Zaw Win)’s Permission

Leave a Reply