Hello community,
i'am trying to update the stage of a bpf but getting the error:
Active Stage ID ‘985ad5d7-fda7-4adb-a2c6-d328b9989367’ does not match last Stage ID in Traversed Path ‘38a8cae5-cf4f-414d-b135-a32d0cecbc12’.
Code:
FetchExpression BPFex = new FetchExpression(baseQuery);
EntityCollection e = service.RetrieveMultiple(BPFex);
if(e.Entities.Count>0)
{
foreach (var sa in e.Entities)
{
EntityReference d= sa.GetAttributeValue<EntityReference>("activestageid");
d.Id = myid;
service.Update(sa);
}
thank you
*This post is locked for comments