Hoppa till huvudinnehållet

Use of replacement tokens in a workflow

Kommentarer

2 kommentarer

  • Permanently deleted user

    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
  • Berend Veldkamp

    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.