简体   繁体   English

有没有办法将数据工厂 Web 活动输出保存到文件或数据库表中?

[英]Is there a way to save Data Factory web activity output to a file or database table?

I am hitting an issue in Data factory when connecting to oauth 2 rest api, where I don't seem to be able to find a way to save the web activity output to a file or database table, so then other pipelines can do a lookup to get the current access and refresh tokens.连接到 oauth 2 rest api 时,我在数据工厂中遇到了一个问题,我似乎无法找到将 Web 活动输出保存到文件或数据库表的方法,因此其他管道可以进行查找获取当前访问和刷新令牌。 As you can see in the attached scheenshot, I can connect to the api and get the access and refresh tokens back in ADF, now I want to store these somewhere, but its seems you can only save datasets in ADF and this is just the output of the web activity and can't be made into a dataset.正如您在附件中看到的那样,我可以连接到 api 并在 ADF 中获取访问和刷新令牌,现在我想将这些存储在某个地方,但似乎您只能在 ADF 中保存数据集,这只是输出网络活动的一部分,不能制成数据集。 I can set them to variables, but this still doesn't let me save them anywhere.我可以将它们设置为变量,但这仍然不能让我将它们保存在任何地方。 Does anyone know a way of pushing these token values somewhere, either a file in data lake or database table?有谁知道将这些令牌值推送到某个地方的方法,无论是数据湖中的文件还是数据库表?

在此处输入图像描述

You don't need to store these token values.您不需要存储这些令牌值。 The output of "GetAccess_Token" web activity can be passed as input to the other activity like activity('Get Access_Token').output.access_token . “GetAccess_Token”网络活动的输出可以作为输入传递给其他活动,如activity('Get Access_Token').output.access_token Please refer my answer in another similar post of mine here ( Refresh Power BI dataset through Azure Data factory ).请在此处参考我在另一篇类似帖子中的回答( 通过 Azure 数据工厂刷新 Power BI 数据集)。

Hope this helps!!希望这可以帮助!!

Please mark it as answer so that other people can get benefit from it.请将其标记为答案,以便其他人可以从中受益。

Screenshot added of pipeline using a stored procedure to stored the auth tokens to a database table.添加的屏幕截图显示了使用存储过程将身份验证令牌存储到数据库表的管道。

https://i.stack.imgur.com/75zoi.png https://i.stack.imgur.com/75zoi.png

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM