Hi, I am trying to get the context of newly created record during the creation, but it looks like I can not do that, so is it possible to trigger a custom workflow after record created?
*This post is locked for comments
Hi, I am trying to get the context of newly created record during the creation, but it looks like I can not do that, so is it possible to trigger a custom workflow after record created?
*This post is locked for comments
Hi,
If you are using a Create message to create record then do note that this returns the GUID of the newly created record which you can then use it. For example, if you create account record from SDK and then wants to create a task for it, you can do this like this..
Sample Code:
// Get the id of the account being created
var accountId = _service.Create(newAccountObject);
// Create an entity reference object from the returned account Guid
var newAccountRef = new EntityReference()
// Create a task for the account
newTask["regardingobjectid"] = newAccountRef
_service.Create(newTask);
Hope this helps
Hello,
It is possible. What issue do you experience?
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156