Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Connector Development
Unanswered

Custom Connector - Dynamic Data from Previous Action

(1) ShareShare
ReportReport
Posted on by 400
Hi everyone,
 
I've built a custom connector, with multiple actions. I have several actions which have a dependency on the outcome of a previous action in the Flow. Normally, during the build, an expression would be added to reference the previous action, and get the necessary outcome. However, it occurs to me that this should be able to be "internalised" in the Custom Connector, so when the user leverages the Custom Connector Action (when building a new flow), the 'expression' is preset in the Connector's Action in the background, requiring with no user intervention. (Ideally, it would update if the user chose a custom name for the action in the Flow - just like expressions in the Flow designer update if a user changes the name of a Flow action with a Standard connector and Standard expression).
 
The problem arises that this is dynamic data, based on the previous step. For example, the below 'Do until' action continues until StepA is done, then in StepB, the dynamic output (set by a return from an API to StepA during Flow Run Time) is required. The property 'fileID' is required in StepB, dynamically generated from StepA.
 
I am not seeing how to build this logic in to the Custom Connector. I assume there must be a way to have a Custom Connector action reference the output of another action in the connector? Can anyone advise?
 
Many thanks!
 
 
Update:
 
When selecting the Dynamic Content Picker, next to the input for StepB, the only content selectable from StepA is "Body", IE:
 
 
Could a method of achieving this requirement be to somehow list, in the Dynamic Content Picker, the "result.fileID" property?
Categories:
  • pp365 Profile Picture
    400 on at
    Custom Connector - Dynamic Data from Previous Action
    Hi @lbendlin / Power Platform Community,
     
    Thank you for the pointer on this, but I was hoping for some more information if possible; any assistance would be greatly appreciated, thank you.
     
    1. Could you possibly provide further details on that solution, IE how it would work differently to what I've provided in the current version above? It would be fantastic if you were able to share a screenshot or more details about how this would work optimally?
     
    2. Let's say in the above example, the output from StepA was not in a 'Do Until' and in fact it was just a one-time action output from StepA. In that case, would it be possible to automatically refer to the output of StepA within the StepB action (within the Custom Connector configuration and not having the user set up an expression, variable etc)? If so, can you explain how this can be done?
  • pp365 Profile Picture
    400 on at
    Custom Connector - Dynamic Data from Previous Action
     
    Many thanks for your reply. Could you advise me a little further;
     
    1. Could you possibly provide further details on that solution, IE how it would work differently to what I've provided in the current version above? It would be fantastic if you were able to share a screenshot or more details about how this would work optimally?
     
    2. Let's say in the above example, the output from StepA was not in a 'Do Until' and in fact it was just a one-time action output from StepA. In that case, would it be possible to automatically refer to the output of StepA within the StepB action (within the Custom Connector configuration and not having the user set up an expression, variable etc)? If so, can you explain how this can be done?
     
    Thank you very much again for your help, it is much appreciated!
     
  • lbendlin Profile Picture
    7,785 Super User 2025 Season 1 on at
    Custom Connector - Dynamic Data from Previous Action
    Since you are doing that in a loop the outcome will be non-deterministic.  You would have to store/append the output of your StepA in an array variable that you could then parse in StepB.
  • pp365 Profile Picture
    400 on at
    Custom Connector - Dynamic Data from Previous Action
    Can anyone assist? I would have thought this would be something the Custom Connector approach would be capable of?
     
    Many thanks!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,518 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,756 Most Valuable Professional

Leaderboard

Featured topics