Hi Team,
I have created a script for a web application, in which the flow is
like opening a word doc in browser, editing it and saving it. But when
i run the script, in the Edit transaction, it gets fails throwing this
error :- 412 PRECONDITION FAILED Error. I have pasted the "web custom
request" at which the error was thrown. Could any one of us look into
this and share your valuable inputs on the same. It would be really
helpful, as i am working on this for a week.. :(
web_custom_request("OneNote.ashx",
"URL=
https://teams.aexp.com/sites/r1testsite5/_vti_bin/
OneNote.ashx",
"Method=POST",
"Resource=0",
"RecContentType=application/json",
"Referer=
https://teams.aexp.com/sites/r1testsite5/_layouts/
WordEditorFrame.aspx?d={hFrameID}&source=https%3A%2F%2Fteams%2Eaexp
%2Ecom%2Fsites%2Fr1testsite5%2FShared%2520Documents%2FForms%2FAllItems
%2Easpx",
"Snapshot=t82.inf",
"Mode=HTTP",
"EncType=application/json; charset=utf-8",
"Body={\"Mode\":2,\"srs\":[[1,{\"DependentOn\":0,\"FileId\":
\"d={hFrameID}\",\"PageTarget\":\"\",\"BrowserId\":\"145e1d77-
c75c-4072-be94-9a6b6f8e1512|1\",\"OperationId\":1}]]}",
LAST);