cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Regarding searching entities.

Bhanu_Manoj
10-Marble

Regarding searching entities.

Hi Team,

 

Is there any way to that I can get the list of all the project entities programatically?

 

Thanks and Regards,

ACCEPTED SOLUTION

Accepted Solutions
anarwal
13-Aquamarine
(To:Bhanu_Manoj)

Hi @Bhanu_Manoj , 

 

you can use service.

 

Projects[projectname].GetEntities();

 

Regards

Ankur

  

View solution in original post

4 REPLIES 4
anarwal
13-Aquamarine
(To:Bhanu_Manoj)

Hi @Bhanu_Manoj , 

 

you can use service.

 

Projects[projectname].GetEntities();

 

Regards

Ankur

  

Hi,

 

Thanks a lot for the reply. Is there any way to set permissions to an entity from services?

mgoel
17-Peridot
(To:Bhanu_Manoj)

@Bhanu_Manoj 

 

You can use setEntityPermission from snippet directly in query. It looks like:

 

let params = {
allow: undefined /* BOOLEAN */,
name: undefined /* STRING */,
includeDependents: undefined /* BOOLEAN */,
type: undefined /* STRING */,
projectName: undefined /* PROJECTNAME */,
tags: undefined /* TAGS */
};

// no return
Resources["EntityServices"].SetEntityPermission(params);

 

Regards,

Mohit

anarwal
13-Aquamarine
(To:anarwal)

Hi @Bhanu_Manoj ,If my response has answered your question, please mark as Accepted Solution, for the benefit of others who may have the same question.

Announcements


Top Tags