Use of replacement tokens in a workflow
Just a short question: Is it possible to use replacement tokens such as {SiteUri} and {SitePath} in a workflow?
-
Hi Berend,
Tokens like {SiteUri} only get processed when a user requests a site from the server. Since workflows execute server-side, I am pretty sure you cannot directly access these tokens.
There is one potential workaround, though. In a workflow, I added two Arguments (bottom of the center panel, next to Variables) called Uri and Path. Then in REST Manager, I edited the configured workflow to add Properties: Uri -> {SiteUri}, Path -> {SitePath}. Now when I call the workflow, I see these two additional properties, which are accessible in the workflow activities. Note that neither of these values point to the true location of the site, so your options with this design are somewhat limited.
Properties:
Uri: gcxfile:///WorkflowStringReplaceTest/
Path: \WorkflowStringReplaceTest\0 -
Hi Paul,
That works perfect, SiteUri is what I need to call the InvokeWorkflow activity
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer