Hello,
I am wondering with SharePoint, if it's possible to find it's unique ID that is randomly assigned to it.
For example, the first item in this list has a randomly assigned unique ID, 1.
Would a user of the chatbot be able to call the ID number by the URL and how would you do that in PVA/creating a flow in Power Automate.
Thanks
Solved! Go to Solution.
OK, @sipark09, I'm going to have to assume a fair bit here, but I'll mark my assumptions.
Plus, before I get in to it, it's important that you understand that you can't control what they put into that field, so you realistically need to prepare for all eventualities. This is the position that you're in with regard to gathering this data.
Firstly, get that image into your original question, as it'll assist anyone who comes to help you with context for what you're talking about.
My first assumption is:
I am assuming that the PVA is asking them to provide a link to a SharePoint item.
If that's the case, then there are a few different links to SharePoint items:
|
|
|
And, the first one is actually the result of following the link provided by the second link type!
So it all depends what URL they're presenting to the PVA, even if you ask them to provide a certain one, you can't be sure (unless you have verification/validation/whatever on the question) it'll match.
Now, each of those actually can be used to identify the item.
These are essentially the same thing, so you should use the same process.
My second assumption is that the URL field there in the PVA is a trigger value, which one can call with either of these expressions:
|
If there are other fields defined it may have a different reference, like |
|
I will use the first one here, just be sure that you refer to the correct field in yours.
(you have since confirmed this assumption, but the usefulness is still there)
You get the ID by splitting the URL_REF, in this case triggerBody()['text'], however you can purely look at everything after the question mark (the query) by using the function:
|
Now you need to split on ID=, except you don't know what else will be inside that uriQuery() value, which could include other parameters that end with ID=. So you need to include a condition in there to check.
The full expression looks something like this:
|
This is broken down in this spoiler:
If the link is of type #2, then you need to use my solution here:
It's a bit more advanced, so you need to ensure that you're at home with everything there, because it's using some quite specific functions.
Hi, @sipark09, have you tried to actually make a flow, yet? ( not said sarcastically! 😉 )
The first thing that you see when playing around with SharePoint lists will be the ID field.
Just do some playing around and testing, and you'll find that you can do so much! Including filtering on the trigger!
Hello @eliotcole
Below is what I've been trying to do.
But obviously the error comes from the output in the ID field not being an integer. Currently it's the URL.
So I was wondering how i can call the ID number from the user input which would be the URL.
Thanks
I'm also using the PVA Trigger (when PVA/chatbot calls a flow) so the SharePoint triggers are not in play here.
OK, @sipark09, I'm going to have to assume a fair bit here, but I'll mark my assumptions.
Plus, before I get in to it, it's important that you understand that you can't control what they put into that field, so you realistically need to prepare for all eventualities. This is the position that you're in with regard to gathering this data.
Firstly, get that image into your original question, as it'll assist anyone who comes to help you with context for what you're talking about.
My first assumption is:
I am assuming that the PVA is asking them to provide a link to a SharePoint item.
If that's the case, then there are a few different links to SharePoint items:
|
|
|
And, the first one is actually the result of following the link provided by the second link type!
So it all depends what URL they're presenting to the PVA, even if you ask them to provide a certain one, you can't be sure (unless you have verification/validation/whatever on the question) it'll match.
Now, each of those actually can be used to identify the item.
These are essentially the same thing, so you should use the same process.
My second assumption is that the URL field there in the PVA is a trigger value, which one can call with either of these expressions:
|
If there are other fields defined it may have a different reference, like |
|
I will use the first one here, just be sure that you refer to the correct field in yours.
(you have since confirmed this assumption, but the usefulness is still there)
You get the ID by splitting the URL_REF, in this case triggerBody()['text'], however you can purely look at everything after the question mark (the query) by using the function:
|
Now you need to split on ID=, except you don't know what else will be inside that uriQuery() value, which could include other parameters that end with ID=. So you need to include a condition in there to check.
The full expression looks something like this:
|
This is broken down in this spoiler:
If the link is of type #2, then you need to use my solution here:
It's a bit more advanced, so you need to ensure that you're at home with everything there, because it's using some quite specific functions.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
67 | |
24 | |
16 | |
16 | |
13 |
User | Count |
---|---|
116 | |
35 | |
32 | |
28 | |
26 |