Wrapper Subflows
6 min
wrapper subflows if you notice extra run subflow actions in your migrated pad flow, this is expected subflows prefixed with "w" are wrapper subflows — blueprint generates them to handle argument passing, which pad does not support natively in subflow calls why wrapper subflows exist power automate desktop's run subflow action has no mechanism for passing arguments directly when the source process requires argument passing between subflows, blueprint creates wrapper subflows to handle it, ensuring the migrated flow behaves the same way as the original wrapper subflows are only created when a subflow call passes more than five arguments calls with five or fewer arguments are handled inline — no wrapper is created example if main calls subflow a, and subflow a calls subflow b, and each call passes more than five arguments, blueprint generates two wrapper subflows — one for each call what a wrapper subflow does a wrapper subflow runs immediately before the subflow it wraps it performs three functions in sequence variable initialization — initializes internal variables from the source rpa tool variables with no default value are set to null argument assignment — assigns input and output argument values for the subflow call subflow execution — calls the target subflow as its final step if multiple calls share the exact same arguments, the same wrapper is reused rather than duplicated naming conventions all wrapper subflow names begin with "w" , followed by a prefix derived from the calling flow's name and then the called subflow's name scenario prefix logic main is the caller no additional prefix — just "w" called subflow name has multiple words separated by special characters "w" + first 2–3 letters of each word called subflow name is a single camelcase word "w" + first 2–3 uppercase letters called subflow name has one uppercase letter or is all lowercase "w" + first 2–3 letters of the flow name flow name starts with a special character or number "w" + underscore added as prefix examples caller subflow called subflow wrapper name subflow a subflow b wsa subflowb subflow a subflow b wsa subflowb subflowa subflowb wsub subflowb main 5550 subflow w 5550 subflow 5550 main process extract data wmp extract data ⓘ if the same caller subflow calls the same target subflow multiple times with different arguments, blueprint creates a separate wrapper for each variation, distinguished by a numeric suffix — e g , wsa subflowb, w1sa subflowb, w2sa subflowb