Re: Direct link to a specific advanced form step
Hi @JanWill ,
had a look to the old code. There was nothing like stephistory, we stored the information in the jsonobject. So, pretty ugly 🙂 - not supported at all but worked in the old adx version. Can be changed any time without notice.
Actually, the json was an array of steps with the link to the previous one containing the stepnumber and the id, logicalname and primarykey of the record which is worked on. As you make an insert in the second step, may be an empty guid or nulls in that field do the job. Who knows 😞
newsessionobject["adx_stephistory"] = "[{\"ID\":\"<guid of the first webformstep>\",\"Index\":0,\"IsActive\":null,\"PreviousStepID\":\"00000000-0000-0000-0000-000000000000\",\"ReferenceEntity\":{\"ID\":\"" + entitywhichisworkedon.Id.ToString() + "\",\"LogicalName\":\"<logicalnameofentityworkingon>\",\"PrimaryKeyLogicalName\":\"<keyfieldnameinentityworkingon>\"}},{\"ID\":\"<guid of secondstep>\",\"Index\":1,\"IsA...
Can not be repeated too often: completely unsupported and should not be used at all.
Better go for another approach or leave out the first step 🙂 (ok, it will be there for a reason)
Hope this helps and is never used 🙂 ,
Christian