1

I am trying to make a generic Logic App(LA) to do some processing on some files. Calling the Logic App from ADF and able to pass the correct File Names. However I am not able to use/assign values passed to the Logic App to the parameters defined in the LA. What am I Missing ? Please see the screenshot.

-Thanks

enter image description here

Sample Execution to show the names are passed properly.

enter image description here

2
  • Hi Akshay, may I know if your problem was solved ? If still have problem or I misunderstand your problem, please let me know. Commented Aug 19, 2020 at 7:04
  • Shen, please have a look at my post and let me know if you did anything different. Commented Aug 19, 2020 at 11:52

1 Answer 1

3

As far as I know, we can't assign PRM_FileName from the body of the request to one parameter. But we can use expression to get the value of PRM_FileName.

The expression should be triggerBody()?['PRM_FileName']. You can also assign PRM_FileName to a variable (for example named var1) and you can use the var1 in your next actions but not use the expression(shown as below screenshot). enter image description here

============================Update===========================

Below is my logic app:

enter image description here

I did everything what you mentioned in your 3 steps except I put the PRM_FileName in the body of the request but not appending it at the end of url.

enter image description here

============================Update 2===========================

Please use same schema with mine:

{
    "type": "object",
    "properties": {
        "PRM_FileName": {
            "type": "string"
        }
    }
}

And then select the PRM_FileName into the variable directly(shown as below screenshot). enter image description here

The expression should be triggerBody()?['PRM_FileName'], but in your screenshot the expression is triggerOutputs()['queries']['PRM_FileName'].

Sign up to request clarification or add additional context in comments.

9 Comments

Hi Shen. Thank you for providing a solution. However I have figured out that to retrieve values 3 steps are necessary which gives a desired result somewhat. 1) Add a Method "POST" in the Logic App HTTP Trigger 2) The body must have property that needs to be received (e.g. PRM_FILEName) 3) Pass parameter at the end of URL by appending & like https://****&PRM_FILEName='ABC.TXT' Then retrieved value can be assigned to a Variable but NOT TO Parameter. Did you have to follow the above 3 points or there is something else ?
Hi @Akshay Sorry for the delay, please refer to my "Update" in answer. I did everything what you mentioned in your 3 steps except I put the PRM_FileName in the body of the request but not appending it at the end of url. And I don't think we can get the value of PRM_FileName in a variable if we append it at the end of post url without do anything else.
Shen, If I don't append the URL, I can't get values transferred. But you suggest that it is not required ?
@Akshay Just put the PRM_FileName in the body of your post request instead of append it at the end of the url. As the screenshot of postman I provided in my "Update" answer.
@Akshay Since it is a post method(not get method), we should put the params in request body but not append them at the end of the url.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.