Unable to publish the subflow (Error: attempting to use undefined input = 'current' from )DescriptionWhen attempting to Publish a Subflow following error is seen : "Error: attempting to use undefined input = 'current' from <SUB FLOW NAME>". CauseThis is caused due to the improper usage of inline script under the fields of actions defined in a subflow.Resolution If you use sub flow, you will need to define Inputs in the sub flow so that the main flow can pass the trigger record to be updated to the sub flow. The "current" variable does not work in sub flow. Please refer to the following community link to get more clear understanding of the solution. https://community.servicenow.com/community?id=community_question&sys_id=3840f2c61b17f4d0c552c8031d4bcb97