Forum Discussion

narita1234's avatar
narita1234
Copper Contributor
Apr 23, 2024

How to send a message to a specific user

I want to send a message to a specific user from external service using the user ID.

 

In the sample code, I can use "getPagedInstallations" to loop through all users.

-----------------------------------------

const pagedData = await notificationApp.notification.getPagedInstallations(
  pageSize,
  continuationToken
);
 
const installations = pagedData.data;
for (const target of installations) {
   ...
}

-----------------------------------------

 

I think this is bad performance.

Is there any other better way?

 

1 Reply

Resources