02-06-2020, 02:37 PM
Another question about related.
When i do TEL query - everything ok. But how i can do this with Search?
Trying to do this:
from pyasm.search import Search
server.set_project('testovy')
search_key = 'testovy/asset?project=testovy&code=ASSET00002'
search_type, search_code = server.split_search_key(search_key)
search = Search(search_type)
sobject = search.get_by_search_key(search_key)
related_sobjects = sobject.get_related_sobjects('testovy/asset_in_asset')
I got "Fault: <Fault 1: 'Search type [testovy/asset_in_asset?project=testovy] is not related to search_type [testovy/asset?project=testovy]'>
"
When i do TEL query - everything ok. But how i can do this with Search?
Trying to do this:
from pyasm.search import Search
server.set_project('testovy')
search_key = 'testovy/asset?project=testovy&code=ASSET00002'
search_type, search_code = server.split_search_key(search_key)
search = Search(search_type)
sobject = search.get_by_search_key(search_key)
related_sobjects = sobject.get_related_sobjects('testovy/asset_in_asset')
I got "Fault: <Fault 1: 'Search type [testovy/asset_in_asset?project=testovy] is not related to search_type [testovy/asset?project=testovy]'>
"