Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
krishn
Helper I
Helper I

parsing set variable string in Azure Data Factory

We have web activity and it always return below string with value change (value is dynamic everyday). We would need to extract key value. Please advise how to achieve this in Azure Data Factory activities.

Set Activity return value : Value= "{"aws_access_key_id":"XE6MX","aws_secret_access_key":"sgD6zEe"}"

We would like to get aws_access_key_id value XE6MX in separate variable so we can pass it to subsequent activities. And this value id dynamic and changes every day

tried with replace and search functions but couldn't work out.

1 ACCEPTED SOLUTION
NandanHegde
Super User
Super User

The below solution should work to parse:

 

@json(<<Act output>>).aws_access_key_id

View solution in original post

3 REPLIES 3
NandanHegde
Super User
Super User

The below solution should work to parse:

 

@json(<<Act output>>).aws_access_key_id
Riskworks115
Frequent Visitor

You should be able to use a set Variable to capture the result value of the web activity. Use that variable to save to an Azure database with a stored procedure or to some other store.  I did this by making a call to the site to get a daily bearer token that I saved to an avure database table in a key value pair.   Then I would use that token when making a cal to get the data.  HTH.

Hi @krishn 
Glad that your query got resolved. Please continue using Fabric Community for any help regarding your queries.

Helpful resources

Announcements
September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.