SharePoint 2013 workflows has out of the box workflow actions Check In and Check Out
To solve this, we can use the "call http web service" action with SharePoint REST API.
Follow these steps to check in a File as major version (publish):
1. Create a Workflow 2013 in SharePoint Designer
2. Rename the Stage to "Published"
3. Add a Build Dictionary action and name the output variable "JSonRequestHeader". Add a string variable named content-type with the value application/json;odata=verbose and add a new string variable named Accept with the value application/json;odata=verbose and click OK
4. Add a new Build Dictionary action and name the output variable "JSonRequestParameters"
Add a string variable named comment with the value Published by workflow
5. Check Out the file
6. Add Call http web service action with these properties:
Address:
[%Workflow Context:Current Site URL%]/_api/web/getfilebyserverrelativeurl('[%Current Item:Server Relative URL%]')/CheckIn(comment='Published by workflow',checkintype=1)
RequestType: Post
RequestHeaders: Variable: JSonRequestHeader
RequestContent: Variable: JSonRequestParameters
ResponseContent: Variable: JSonResult (Create new)
ResponseHeaders: Variable: JSonResponseHeaders (Create new)
ResponseStatusCode: Variable: responseCode
7. Then publish your workflow
The final result:
219 Komentar
«Oldest ‹Older 201 – 219 of 219 Newer› Newest»Nice Post, I really enjoy reading the articles that are made, thank you.
Balascara bermain togel online
cara daftar togel online
very helpful reading your blog articles, thank you very much in advance.
Balascara penarikan togel
cara withdraw togel
Thanks for the article, good information so nice.
PRTOTO
https://www.blogger.com/comment.g?blogID=3173848626557641342&postID=370162742216880768&page=1&token=1708358916257
BalasA very insghtful article, really love it. PRTOTO
Lovely article who inspired me a lot.
BalasPRTOTO
When I read your article, I realize it is really insipired me to write my blog as good as yours
BalasPRTOTO
A good writing and help me so much and I also get personal experience during reading your blog
BalasPRTOTO
Great writting,,,love it so much PRTOTO
BalasONLINEGAMING
BalasA very good blog with very good content, always looking for your new content. Keep up the good work...PRTOTO
BalasAmazing content, eager to have your new post.PRTOTO
BalasA wonderful writting content. Really love your work...PRTOTO
BalasI'm really enjoy to read your wonderful writing, really believe you could do other writting as good as this or even better. PRTOTO
What I appreciate about WSO55 is their no-nonsense approach. Clean interface, straightforward mechanics, and most importantly - fair play guaranteed. https://wso55pastimaxwin.space
BalasHonestly, I used to hate site errors. But since I switched to jayaspin, zero problems. The jayaspin login is always up, and when it’s not, I just tap the jayaspin link alternative and I’m back in business. Easy win, fam.
BalasBruh, ever since I found jayaspin, it's been non-stop wins and chill. I don't even stress about logins anymore—jayaspin login is fast, smooth, and zero hassle. Plus, that jayaspin link alternative is like my emergency shortcut when the main site’s trippin’. http://lineitupmedia.com
BalasI was searching for authentic slot Thailand games and stumbled upon Jayaspin. What a gem! The game variety is impressive and so engaging. I find myself playing way more than expected. Jayaspin offers a user-friendly site that’s fast, fun, and reliable. Highly recommended for new and veteran players. http://lineitupmedia.com
BalasFührerschein kaufen
Balas. Wir bieten absolut alle Führerscheinklassen in Deutschland an, von Klasse A Zweirädern bis Klasse D Unterklassen für Pkw, inklusive Unterklassen B und C für Pkw und Lkw. Weitere Informationen zu den Führerscheinklassen finden Sie unter Führerschein kaufen
Registrierten Führerschein kaufen
Registrierten Führerschein kaufen
EU Führerschein kaufen