Azure Synapse Analitycs Dynamic Content Expressions

Eddynson Vega 147 Reputation points
2022-02-08T00:06:05.393+00:00

Hello, I have a problem with wanting to formulate a json expression using the expressions of synapse analitycs.

The expression is as follows: {"query": "SELECT TOP 1000 * FROM LN_tdsls401 WHERE infor.lastModified() > '2021-08-28T06:00:00Z'"}

@markus.bohland@hotmail.de ('{', '"entidad"',':','"LN_tdsls401"', ',', '"cantidad"',':','"1000"', '"query"',':', '"SELECT TOP 1000 * FROM LN_tdsls401 WHERE infor.lastModified() >','''',variables('lastupdated'),'''"}')

When running the pipeline I realize that it is not well formulated.

171970-image.png

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,467 questions
{count} votes

1 answer

Sort by: Most helpful
  1. HimanshuSinha-msft 19,381 Reputation points Microsoft Employee
    2022-02-08T22:05:58.403+00:00

    Hello @Anonymous ,
    Thanks for the ask and using Microsoft Q&A platform .
    As we understand the ask here is how to convert the string to a valid JSON . Please do let me know if that not accurate
    As I understand at this time you are concatinating the string to create a JSON format . Just wanted to check if you have explored the option to use the JSON function . Please read about the same here .

    Adding the text from the link above for more context .

    ****json****

    Return the JavaScript Object Notation (JSON) type value or object for a string or XML.

    Please do let me if you have any queries .
    Thanks
    Himanshu


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

    https://learn.microsoft.com/en-us/azure/data-factory/control-flow-expression-language-functions#json

    0 comments No comments