Skip to main content
Nintex Community Menu Bar
Solved

Find List Name with ListId?

  • April 8, 2018
  • 6 replies
  • 113 views
  • Translate

rhia
Forum|alt.badge.img+15
  • Novice
  • 805 replies

Hey there - 

 

Using O365.

 

So in On-Prem I would just use CAML Query and put the list GUID in there and query it.  All I have at my disposal is the ListId, and the list coming back will be different sporadically. 

 

Within Query List, I HAVE to name a List via hardcoded dropdown so that won't work.

 

Within O365 Query List, it looks like it lets me use a variable to name my list - so, cool, closer - but how do I retrieve the name of the List that correlates to my ListId? 

 

Thank you!
 

Rhia

Best answer by callum

Hi Rhia,

Let me speak to someone in the team who may have some ideas on this.

In the mean time you may want to try using the Call HTTP Web Service action to call the SPO REST API:

/_api/lists/getbyid('{Variable:YourListIDHere}')/entitytypename‍‍

I'll see if I can find a better solution for this.


Callum

View original
Did this topic help you find an answer to your question?

6 replies

rhia
Forum|alt.badge.img+15
  • Author
  • Novice
  • 805 replies
  • April 9, 2018

Tomasz Poszytek‌ | Andrew Glasser‌ | Caroline Jung‌ | Enrico Knapp‌ | Jesse McHargue

I don't really know anyone who uses O365 so I'm hoping one of you might?

I keep running into these situations where something is really simple in on-prem, but trying to duplicate it in O365 has me hitting roadblock upon roadblock, probably due to my inexperience with it.

All I want to do right now is use the results of my search query to update each item that comes back -- it could be in a different list -- and so the search query returns the ListId, and the Path. I don't think I can just "update this path" (?) so I've got the ID via RegEx, and now want to get the list via ListId....

Translate

Forum|alt.badge.img+9
  • Nintex Employee
  • 162 replies
  • Answer
  • April 9, 2018

Hi Rhia,

Let me speak to someone in the team who may have some ideas on this.

In the mean time you may want to try using the Call HTTP Web Service action to call the SPO REST API:

/_api/lists/getbyid('{Variable:YourListIDHere}')/entitytypename‍‍

I'll see if I can find a better solution for this.


Callum

Translate

TomaszPoszytek
Forum|alt.badge.img+17

I was also thinking about a solution Callum has written about. You have to call list rest api to obtain its name knowing its GUID. 

Translate

rhia
Forum|alt.badge.img+15
  • Author
  • Novice
  • 805 replies
  • April 9, 2018

Ah thanks Callum, I hadn't even considered a REST API. That would work out. 

But if you have a better approach to what I'm trying to do above, I'd super appreciate it, and thanks!

Translate

rhia
Forum|alt.badge.img+15
  • Author
  • Novice
  • 805 replies
  • April 9, 2018

I feel dumb, I didn't think at all about REST APIs ... I think  I was scared they wouldn't work in SPO so I didn't even fire that brain cell  

Translate

rhia
Forum|alt.badge.img+15
  • Author
  • Novice
  • 805 replies
  • April 9, 2018

Awesome, this works. Thank you kindly!

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings