I've just created an ADF pipeline that allow me to refresh different partition of an Analysis Services Model (PBI XMLA) using a json script that I have to pass as parameter to my Webhook.
In the lookup I retrieve the partition to refresh and inside the for each I'm able to create the json query. Once I pass the query as RequestBody parameter when the webhook read it, it recognize also the callback uri as the RequestBody.
But when the Webhook run, this is the result: the RequestBody contains also the callbackUri passed from the ADF Pipeline.
$Query = $WebhookData.RequestBody
Write-Output "$Query"
How can I solve this issue?
Thank you!
If i use the Web Activity everything work in the right way since I haven't the callbackUri inside the body of my parameters.
Related
It is possible to change value of the parameters in Power Bi Desktop from dashboard (main-page) level ?
I'm using parameters in two web requests as json body (DateFrom DateTo).
I know that there is "Transform data" option and I was trying :
https://learn.microsoft.com/en-gb/power-bi/connect-data/desktop-dynamic-m-query-parameters
but I cannot bind table to parameter - there is no "Bind to parameter" field.
Bind to parameter
My Api Request
You can only use query parameters in Power Query (M language). Here is an example that works for me. Assuming the output is JSON, you would do it like this (you do it in the advanced editor):
let
src = Web.Contents(baseUrl, [RelativePath = urlPath, Query=[#"api_token" = apiKey, limit=Text.From(limit), start=Text.From(offset)]])
json = Json.Document(src)
in
json
In the above examples, parameters are:
baseUrl for root API path
urlPath for API endpoint
apiKey for API authorization token
limi and offset for getting a subset of data
That's just an example, but the api_token parameter is crucial, if you want the query to refresh in the Power BI Service (assuming you're using token-based authentication).
EDIT:
So, I think I finally understood where your problem is. I don't think it can be done with REST API, as the requirement for the Bind parameter function to work is for the query to be in Direct Query mode as opposed to Import. And I don't think you can set it for this.
I want to create small automation between Jira and Azure. To do this, I execute HTTP trigger from Jira, which send all request properties to Azure Logic App. In "When a HTTP request is received" step in Logic App I can see properly JSON schema with all data which I need. In next steps for example I want to add user to Azure AD group. And problem starts here.
For example, I want to Initialize variable and set it with value from JSON. I choose properties from dynamic menu, but after script execute always it is null value ( but in first step in "raw output" I see whole schema with data). I tried many things - parse, compose, many different conversion - always without any luck - null value or "".
Expected value - when I want to initialize variable using Properties from Dynamic Content I want to have value from input json.
Output from Jira
Output with the same JSON send from Postman
Thanks for any help !
--
Flow example
Flow result
If you send the json with application/json content-type, you could just select the property with the dynamic content, however if not you have to parse it to json format with Parse Json action.
AS for the schema, you need use your json data to generate it with Use sample payload to generate schema. Paste the sample json payload.
Then you will be able to select property. However you could not implement it dynamic content, you have to write the expression. The format will be like this body('Parse_JSON')['test1'] and if your json has array data, you need to point the index it will be like this body('Parse_JSON')['test2'][0]['test3'].
Below is my test, you could have a try.
I`m trying to build a Logic app on Azure which will receive JSON from Jira and do some magic on the Azure side. I created a button in Jira flow, which will trigger a webhook to Azure App Logic address. In App Logic I had a step called "When HTTP trigger is received". For schema creation I used the JSON from Jira, so the schema should be okay.
The problem is working with the input. In raw file I can see whole JSON with all details and properties, but it's not divided in to variables automatically.
Step output directly from JIRA
Output from Postman
The headers are more or less the same, so that shouldn't be a problem. Without this output I can't work with variables from JSON correctly, because when I will use variables name from Dynamic Menu it will be null (or "")
We are trying to pass JSON data from TFS to AWS lambda function (myLambdaFunc). For this we are using the 'Invoke Lambda function' utility in the release definition. There is an option to pass the a payload in form of JSON from that utility in TFS.
The lambda function (myLambdaFunc) is capable to read JSON passed to it and create an entry in dynamo DB. And it is working fine if we run the function from AWS console.
But if we run the TFS release job, it is saying that the lambda function has been executed successfully, but no entry in dynamo DB is getting created. Seems like the payload/JSON is not being properly passed to the lambda function.
We are using online TFS:
https://xxxxxxxxxx.visualstudio.com/_projects
Please help!!
I had to parse the event in order to access the TFS payload information:
var data = JSON.parse(event);
console.log('Message:', data['KeyX']);
i have a test plan that has many POST calls like
/api/v1/budgets
now each of those call has a response which return a uuid from the data base, i extract that using a json path extractor and save it to a variable
after i'm doing all the post calls, i need to do the same amount of calls but with DELETE and do it with the uuid i got from the response
is there an efficient way to extract those uuid? for now i had to add a json path extractor manually to each call
and after that, is there a way to save them and run on those saved vars in a loop just send the next one each time?
also i'm gonna use multiple users for each thread, so i don't know if jmeter will be able to solve that issue or i need to handle that as well the threads and the users per thread
JMeter provides ForEach Controller which can iterate variables having numeric postfix like:
uuid_1
uuid_2
uuid_3
etc.
So you can store the uuids above way using for example __counter() function and use single HTTP Request under ForEach Controller in order to delete them.
I would also recommend getting familiarized with Here’s What to Do to Combine Multiple JMeter Variables article to learn how to work with compound variables in JMeter scripts.