To retrieve the output of a Function App activity from another Azure Data Factory using a REST API call, follow these steps:
- Trigger the pipeline in the second ADF using its REST API. When you do this, you'll receive a runId in the response.
Monitor this pipeline by polling its status. Use the runId you got from the previous step to query the pipeline's status using the REST API. Repeat this until the status is either "Success" or "Failed".
Fetch the output of the Function App activity. With the same runId, query the list of activity runs. Search through the returned activities to find your Function App activity and retrieve its output.
Addiitonal Note: For authorization, ensure you set the Authorization header with a Bearer token from Azure Active Directory. If triggering from another Azure Data Factory Web activity, you can use Managed Identity for this.
By following this method, you can easily retrieve the desired output without the need for additional tools like Azure Monitor.