You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying out your library and really likes it. One thing that I got stuck on right now is when using Pipeline simulation and a record is created from a plugin step, there are no Id assigned to the created record.
I did a quick and dirty fix in ProcessPipelineRequest before ProcessPostOperation, which made my plugins trigger and run as I wanted. Not familiar enough with your code to know if this is the correct/best way to solve this, but I'm happy for now :)
if (pipelineParameters.Request.IsCreateRequest())
{
var target = pipelineParameters.Request.Parameters["Target"] as Entity;
if (target.Id == Guid.Empty)
{
target.Id = Guid.NewGuid();
context.AddEntity(target);
}
}
The text was updated successfully, but these errors were encountered:
Thanks Daniel, the Id should be really generated by the response of the Create message and then passed into the pipeline as an output parameter. Let me revisit this and get back to you.
I'm trying out your library and really likes it. One thing that I got stuck on right now is when using Pipeline simulation and a record is created from a plugin step, there are no Id assigned to the created record.
I did a quick and dirty fix in ProcessPipelineRequest before ProcessPostOperation, which made my plugins trigger and run as I wanted. Not familiar enough with your code to know if this is the correct/best way to solve this, but I'm happy for now :)
if (pipelineParameters.Request.IsCreateRequest())
{
var target = pipelineParameters.Request.Parameters["Target"] as Entity;
}
The text was updated successfully, but these errors were encountered: