Block Until Done
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi guys,
May I ask if I can block the salesforce input until the workflow in container 1 is done?
Container 2 is used for checking after uploading data salesforce in container 1.
I cannot use Conditional Runner/Runner Macro as this workflow will be uploaded to Alteryx Server.
Is there any additional way to solve my problem? Thank you
Solved! Go to Solution.
- Labels:
- Macros
- Salesforce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @TommyLau,
You can transform the container 1 into a macro and place is between your Salesforce input and the container 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @TommyLau ,
I would suggest something similar to what @mathieuf suggested, but instead of converting container 1 to a macro, I would convert container 2 into a macro instead. My understanding is that whatever is in container 1 should happen before Alteryx reads data from the Salesforce input tool in container 2.
Maybe @mathieuf can help out here; it's not clear to me if there is a principle that forces Alteryx to execute tools in a workflow before tools within a macro. If there is one, I'm not sure if that does mean that whatever is in your container 2 macro will necessarily happen after whatever is in the batch macro in container 51. Is there a chance those to happen simultaneously?
A way to orchestrate which one happens first is :
- after your batch macro, add a select tool to drop all columns but one (pick one randomly).
- add a sample tool to only keep the first record of that column.
- Next add an append fields tool and connect the T input anchor to the output of the sample tool and
- Connect the output anchor of the block until done tool that's labelled as 3 to the S input anchor of the append fields tool,
- Within your append fields tool, unselect the single field that's coming from your T input anchor. Whatever comes out of the append fields tool is now the original table you had, but you have force it to wait for the batch macro in container 51 to complete, before moving downstream.
You can now connect the output anchor of the append fields tool to the input anchor of your Container 2 macro. I think that Alteryx will wait for data to be fed to the input anchor of the macro, before starting executing any tools inside that macro.
Let me know if that works for you,
Cheers,
Angelos
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Angelos,
Thank you so much for your suggestion, It's working really well and solved my problem!!!!!
Cheers,
Tommy
![](/skins/images/6056C79A596CAB15526D64C598622101/responsive_peak/images/icon_anonymous_message.png)