(For SharePoint 2013, 2016 and SharePoint Online.)
It's generally a good idea to use relative URLs when creating something that you will want to use in more than one place. While not real obvious, you can easily do this in SharePoint 2013 workflow web service calls.
Absolute URL:
http://yourServerName/sites/yourSiteName/_api/web
Relative URL:
/sites/yourSiteName/_api/web
What we would like to have in a workflow web service call:
_api/web
Steps:
- After adding your Call HTTP Web Service action, click “this”
. - Click the "…" button to open the String Builder dialog.
- Continue with web service call action configuration…
As you can probably guess… I’m working on a new class that includes workflows!
.
2 comments:
What if the URL is for another site collection ?
Just add the relative URL as text. /sites/yourSiteName/_api/web
Post a Comment