Solved

Problem when using the FndStreamMessages EntitySet of the StreamSubscriptions projection

  • 9 March 2023
  • 4 replies
  • 122 views

Userlevel 5
Badge +11

Hello everyone,

I would like to send a stream message using the "StreamSubscriptions" projection and the "FndStreamMessages" EntitySet.
By doing some tests with Postman, I can send a stream message perfectly but...
It only works when I send a message with 
- Sender : IFSAPP
- Recipient: IFSAPP
or 
- Sender: IFS user
- Recipient: IFSAPP

On the other hand, if I try to send a flow message with :
- Sender: IFSAPP (or IFS user).
- Recipient: IFS user.

I get this error when running my web service:

For information, here is what it has in the body when the error appears (of course the user exists):

{
"FromUser": "TBO",
"ToUser": "TBO",
"Message": "Test",
"Header": "Test",
"Visible": true,
"StreamType": "General",
"Read": false,
"FollowUpCreated": null,
"Url": null,
"Notes": null,
"LuName": null,
"Reference": null,
"ReferencedObjkey": null,
"WebUrl": null,
"ItemId": null
}


Do you have any idea?
Thanks in advance,

icon

Best answer by TheoB 28 April 2023, 17:50

View original

4 replies

Userlevel 5
Badge +11

Hello,
I would like to re-launch this discussion.
Does anyone have the same problem? Sending a feed message is not possible via BPA?
Thanks in advance,
Theo

Userlevel 2
Badge +6

Hello @TheoB ,

We are currently encountering the same issue. Seems that you can send the stream message only to the person you are authenticated with.

 

Did you find a solution to this ?

 

Regards,

Trishen

Userlevel 5
Badge +11

Hello @BawTrishM ,

Yes I found a solution! 

I created a custom projection and deployed this custom action which is based on this PL/SQL procedure : 

Then I just have to call the associated webservice.
 

And it works very well!

Userlevel 2
Badge +6

@TheoB ,

Thank you for sharing this solution. This would certainly be useful as a generic RestAPI.

Best Regards,
Trishen

Reply