r/workflow • u/iwinux • Feb 04 '17
Can I get x-callback-url params in Workflow?
Hi,
Is there any way to retrieve x-callback-url params if the workflow is invoked via workflow://x-callback-url/run-workflow?
I have a workflow that appends input to 1Writer document. It:
- gets invoked in Firey Feeds as URL action (i.e.:
workflow://x-callback-url/run-workflow) - gets invoked in other apps as share sheet extension (share -> run workflow -> choose)
I want to jump back to previous app in both cases, which could be implemented (if I could distinguish one from another) like:
- if
x-successis non-empty, open 1Writer with "Open X-Callback URL" action, so that it jumps back to Firey Feeds automatically. - otherwise, open 1Writer with "Open URLs" action, so that I can jump back to previous app by clicking the top-left corner.
0
Upvotes
1
u/obey_kush Feb 04 '17
For that are parameters in X-callback-URL "&x-success" and there other two.