Skip to main content
16-Pearl
Sep 11, 2024 6:54 AM UTC
Solved

Getting all style definitions on my server

Good day community,

 

I want to get all the style definitions on my server. Then assign permissions to these dynamically using a service. I know how to assign permissions dynamically however, I am unsure about how to get all the style definitions that are on my server. 

I saw the spotlights search on searchFunctions it could be helpful.

Has anyone tried something like this before?

 

Best Regards,

Janice

nmutterAnswer
17-Peridot
Sep 11, 2024 9:28 AM UTC

On Entity EntityServices there is a service GetEntityList which you can pass in a entity type of 'StyleDefinition' which returns all Styles

nmutter_1-1726046895608.png

Is this what you are searching?

 

4 replies

nmutter17-PeridotAnswer
17-Peridot
Sep 11, 2024 9:28 AM UTC

On Entity EntityServices there is a service GetEntityList which you can pass in a entity type of 'StyleDefinition' which returns all Styles

nmutter_1-1726046895608.png

Is this what you are searching?

 

Translate
Janicen16-PearlAuthor
16-Pearl
Sep 11, 2024 11:07 AM UTC

yes, this is what I was looking for.

Thank you @nmutter.

 

Translate