Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hi,
Is there a service where I can get all the Services in a Thing?
Thanks,
Solved! Go to Solution.
Hi,
For my useCase, I have used below code:
let metadata = Things["XYZ"].GetMetadata();
result = metadata.serviceDefinitions;
result.RemoveField("description");
result.RemoveField("aspects");
result.RemoveField("sourceName");
result.RemoveField("category");
result.RemoveField("isLocalOnly");
result.RemoveField("isPrivate");
result.RemoveField("isAllowOverride");
result.RemoveField("resultType");
result.RemoveField("parameterDefinitions");
result.RemoveField("sourceType");
Thanks @Velkumar for the response.
Thanks,
Hello @pshashipreetham,
It looks like you have a response from a community member. If it helped you solve your question please mark the reply as the Accepted Solution.
Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.
Thanks,
Community Moderation Team.
I have another solution, will post soon.
Hi,
For my useCase, I have used below code:
let metadata = Things["XYZ"].GetMetadata();
result = metadata.serviceDefinitions;
result.RemoveField("description");
result.RemoveField("aspects");
result.RemoveField("sourceName");
result.RemoveField("category");
result.RemoveField("isLocalOnly");
result.RemoveField("isPrivate");
result.RemoveField("isAllowOverride");
result.RemoveField("resultType");
result.RemoveField("parameterDefinitions");
result.RemoveField("sourceType");
Thanks @Velkumar for the response.
Thanks,