Skip to main content
1-Visitor
May 7, 2020
Solved

How to use GetProjectName

  • May 7, 2020
  • 2 replies
  • 1547 views

Hello everyone!

I try to use 'GetProjectName()', that you can find for example in 'EntitySevices'.

But how it works? This function don't have any params, so how should I use it? When I choose this function in services list, I get this:

 

var result = Resources["EntityServices"].GetProjectName();

 

 And of course, result is always empty. 

 

Thank you in advance. 

Best answer by mnarang

I believe The GetProjectName service is not a part of EntityService Resource instead it is a part of Me/Entities domain. That means it should give you the project name of specified entity .Please see the attached screenshot of execution of this service and result. I am getting the project name of my entity in the result. If in case you have a project to an entity (in general information tab) then you should get that particular project name if in case you don't have any project attached you will not get any result as expected.

 

 

Thanks ,

Mukul Narang

2 replies

mnarang5-Regular MemberAnswer
5-Regular Member
May 7, 2020

I believe The GetProjectName service is not a part of EntityService Resource instead it is a part of Me/Entities domain. That means it should give you the project name of specified entity .Please see the attached screenshot of execution of this service and result. I am getting the project name of my entity in the result. If in case you have a project to an entity (in general information tab) then you should get that particular project name if in case you don't have any project attached you will not get any result as expected.

 

 

Thanks ,

Mukul Narang

Community Manager
May 18, 2020

Hi @lala_guliyeva.

 

If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon