I set up a connector that connects to a datasource and can grab a single record. The URL ends like this:
.com/api/items/12345
Right now the connector can only grab that one record's data. If I manually change the item number when editing the connector, I can get a different record's data.
I want to be able to change the last 5 digits in the app itself so I can change what record's data I view. I don't think a query parameter would work because this causes ?queryparameter= to appear in the URL. Like in the following example:
/items?id=12345
I only want to append the item number to the URL. Is there anyway to do this? Ideally in the actual app, I'd want the user to be able to type in a 5 digit number into a textbox, then when they click an "Enter" button, the button will pass that number through and collect the data. The OnSelect property might look something like this:
ClearCollect(CollectionName, ConnectDemo.GrabData(NumberInput.Text))
or
ClearCollect(CollectionName, ConnectDemo.GrabData(12345))
Solved! Go to Solution.
Update: Turns out I just needed a path. I just made the URL /api/items/{item} and it worked!
You'll want to update the definition to accept and use the parameter you're describing.
https://docs.microsoft.com/en-us/connectors/custom-connectors/define-blank#update-the-definition
https://blog.josephvelliah.com/how-to-pass-parameters-to-custom-connector-actions-from-powerapps-app
Update: Turns out I just needed a path. I just made the URL /api/items/{item} and it worked!
User | Count |
---|---|
258 | |
111 | |
95 | |
48 | |
41 |