Custom application subscriptions returns NullPointerException

Hi

I have custom application type with custom content.

I implemented ISubscribableContentType

public bool CanSubscribe(Guid contentId, int userId) {
            return true;
        }

        public bool CanDeleteSubscription(Guid contentId, int subscribedUserId, int userId) {
            return true;

        }

        public bool SupportsSubscriptions => true;



But then I call Apis.Get<IApplicationSubscriptions>()
.Create(Guid.Parse("21BB7313-F73A-419B-B860-0CFC6E901885"), Guid.Parse("00f28038-aa20-5c2b-9f80-cb16f194c6f4"))

I recive NullPointerException in result's errors. 
Same with $core_v2_applicationSubscription.Create($applicationId, $applicationTypeId, "%{}"))


App of course exists and correctly retrives from internal calls from my services.
While debugging I found that issue comes from stored procedure te_Content_Content_Get - it checks application from te_Content_Contents and it absent.

Can someone suggest what should I do with that?



Parents Reply Children
No Data