I am creating a Zap that looks at campaign records related to a contact that is related to an opportunity record in Sugar CRM, then determines which campaign record has an activity date closest to the opportunity create date.
To determine the closest date, I have set up a run python action for the simple calculation, however the number of related campaigns may be different every time, depending on the specific contact. Each campaign name and activity date comes out as a separate line item for use in future steps.
An issue arises when setting up the inputs for the Run python action as it asks for an explicit number of inputs, but that number will not always be the same. How can I format or modify the output from my ‘Find Campaigns’ action so that ALL results are utilized as a single input for my run python action?